|
string::operator=public member function
string& operator= ( const string& str ); string& operator= ( const char* s ); string& operator= ( char c ); String assignment Sets a copy of the argument as the new content for the string object.The previous content is dropped. The assign member function provides a similar functionality with additional options. Parameters
Return Value*thisExample
Output:
Basic template member declarations( basic_string<charT,traits,Allocator> )
See also
|