
Go for the const_begin versions - crbegin is dreadful. Write-once - read many... Paul | -----Original Message----- | From: boost-bounces@lists.boost.org | [mailto:boost-bounces@lists.boost.org] On Behalf Of Thorsten Ottosen | Sent: 15 September 2004 16:10 | To: boost@lists.boost.org | Subject: [boost] [boost.range] late addition, votes needed | | Dear All, | | In the pre-redmond mailing Walter Brown discusses the | possibility of adding | these members to standard container classes: | | const_iterator cbegin(); | const_iterator cend(); | const_reverse_iterator crbegin(); | const_reverse_iterator crbegin(); | | The motiviation is that we want to be able to say explicitly | "give me a const | iterator" without doing ugly casts. | IMO a sound idea. | | Given the framework in boost.range these would be absolutely | *trivial* to add. | | 1st vote: for or against adding these? | | 2nd vote: which naming scheme to use: | | a: cbegin(), cr_begin() | | b: const_begin(); const_rbegin(); | | The motivation for chosing the latter could be that "cr" | contracttions become | harder to read. | | Let me know what ya think. | | best regards | | Thorsten