summaryrefslogtreecommitdiff
path: root/libstdc++
diff options
context:
space:
mode:
authorgerald <gerald@138bc75d-0d04-0410-961f-82ee72b054a4>2000-07-14 16:27:45 +0000
committergerald <gerald@138bc75d-0d04-0410-961f-82ee72b054a4>2000-07-14 16:27:45 +0000
commit151272a450e577758fddc16c7428e2ccd02bf2a8 (patch)
tree11ec8129012704a664cd726e9faa635c63d1c6be /libstdc++
parent1c778fcd421a24a7eb1c94d18bed7e03e48eaa5f (diff)
downloadgcc-151272a450e577758fddc16c7428e2ccd02bf2a8.tar.gz
* std/bastring.h (basic_string<>::clear): Add function.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35035 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++')
-rw-r--r--libstdc++/ChangeLog4
-rw-r--r--libstdc++/std/bastring.h2
2 files changed, 6 insertions, 0 deletions
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 <panisset@discreet.com>
+
+ * std/bastring.h (basic_string<>::clear): Add function.
+
2000-07-06 Zack Weinberg <zack@wolery.cumb.org>
* 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