implementation needs it for wchar_t and SmallVectorImpl in general.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120984
91177308-0d34-0410-b5e6-
96231b3b80d8
// Implicit conversion to StringRef.
operator StringRef() const { return str(); }
- const char *c_str() {
- this->push_back(0);
- this->pop_back();
- return this->data();
- }
-
// Extra operators.
const SmallString &operator=(StringRef RHS) {
this->clear();
return Result;
}
+ // TODO: Make this const, if it's safe...
+ typename SuperClass::const_pointer c_str() {
+ push_back(0);
+ pop_back();
+ return this->data();
+ }
void swap(SmallVectorImpl &RHS);