From 30f747d0772283f8ab408f7c07393d5c54db9f16 Mon Sep 17 00:00:00 2001 From: Jean-Francois Panisset Date: Fri, 14 Jul 2000 16:27:45 +0000 Subject: [PATCH] * std/bastring.h (basic_string<>::clear): Add function. From-SVN: r35035 --- libstdc++/ChangeLog | 4 ++++ libstdc++/std/bastring.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/libstdc++/ChangeLog b/libstdc++/ChangeLog index 36751914e5f..d09fc3d7b6f 100644 --- a/libstdc++/ChangeLog +++ b/libstdc++/ChangeLog @@ -1,3 +1,7 @@ +2000-07-14 Jean-Francois Panisset + + * std/bastring.h (basic_string<>::clear): Add function. + 2000-07-06 Zack Weinberg * std/gslice_array.h, std/indirect_array.h, std/mask_array.h, diff --git a/libstdc++/std/bastring.h b/libstdc++/std/bastring.h index 43aea7585ca..c45607a0410 100644 --- a/libstdc++/std/bastring.h +++ b/libstdc++/std/bastring.h @@ -346,6 +346,8 @@ public: { resize (n, eos ()); } void reserve (size_type) { } + void clear() { erase(begin(), end()); } + size_type copy (charT* s, size_type n, size_type pos = 0) const; size_type find (const basic_string& str, size_type pos = 0) const