This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
basic_string missing clear() method in 2.95.2
- To: gcc-bugs at gcc dot gnu dot org
- Subject: basic_string missing clear() method in 2.95.2
- From: Jean-Francois Panisset <panisset at discreet dot com>
- Date: Wed, 15 Mar 2000 21:53:05 -0500
- Organization: Discreet Logic
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());