This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

*begin() and *end() methods on c++0x containers


IMHO there's some issues in the implementation of the iterator accessors of some containers in trunk (and gcc-4.3.0) version of libstdc++.

std::string: c++0x's cbegin, cend, crbegin and crend are missing

std::set: begin() and end() are const qualified members, whereas in current C++0x draft they're not cv-qualified. Maybe this is a libstdc++'s implementation detail because you're not supposed to modify the iterator's pointee? But the interface in the draft is clear, the function isn't cv-qualified...

std::multiset: same issue as with std::set

Regards,
rod


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]