This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
*begin() and *end() methods on c++0x containers
- From: Rodolfo Lima <rodolfo at rodsoft dot org>
- To: libstdc++ at gcc dot gnu dot org
- Date: Wed, 21 May 2008 10:40:21 -0300
- Subject: *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