This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


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

basic_string missing clear() method in 2.95.2


In gcc 2.95.2, the basic_string class defined in:

libstdc++/std/bastring.h

is missing a clear() method. According to the ISO C++
standard, section 21.3.3:

void clear();

Effects: Behaves as if the function calls:

erase(begin(), end());

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