[haiku-commits] r37924 - haiku/trunk/headers/cpp/std

Author: axeld
Date: 2010-08-05 13:23:01 +0200 (Thu, 05 Aug 2010)
New Revision: 37924
Changeset: http://dev.haiku-os.org/changeset/37924

Modified:
   haiku/trunk/headers/cpp/std/bastring.h
Log:
* Added missing clear() method.


Modified: haiku/trunk/headers/cpp/std/bastring.h
===================================================================
--- haiku/trunk/headers/cpp/std/bastring.h      2010-08-05 11:09:17 UTC (rev 
37923)
+++ haiku/trunk/headers/cpp/std/bastring.h      2010-08-05 11:23:01 UTC (rev 
37924)
@@ -289,6 +289,8 @@
       replace (__o, l-f, (size_type)0, (charT)0);selfish ();
       return ibegin() + __o; }
 
+  void clear()
+    { erase(begin(), end()); }
   basic_string& replace (size_type pos1, size_type n1, const basic_string& str,
                         size_type pos2 = 0, size_type n2 = npos);
   basic_string& replace (size_type pos, size_type n1, const charT* s,


Other related posts: