diff --git a/headers/cpp/std/bastring.h b/headers/cpp/std/bastring.h index 8f95a7c92c..1fdff54d0e 100644 --- a/headers/cpp/std/bastring.h +++ b/headers/cpp/std/bastring.h @@ -289,6 +289,8 @@ public: 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,