std::basic_string::clear

void clear(); Removes all characters from the string as if by executing erase(begin(), end()). The allocated memory will not be released, effectively leaving the capacity of the string unchanged. All pointers, references, and iterators are invalidated. Parameters (none). Return value (none). Notes Unlike for std::vector::clear, the C++ standard does not explicitly require that capacity is unchanged by this function, but existing implementations do not change capacity. Excepti

std::basic_string::begin

iterator begin(); const_iterator begin() const; const_iterator cbegin() const; (since C++11) Returns an iterator to the first character of the string. begin() returns a mutable or constant iterator, depending on the constness of *this. cbegin() always returns a constant iterator. It is equivalent to const_cast<const basic_string&>(*this).begin(). Parameters (none). Return value iterator to the first character. Exceptions (none) (until C++11) noexcept spec

std::basic_string

Defined in header <string> template< class CharT, class Traits = std::char_traits<CharT>, class Allocator = std::allocator<CharT> > class basic_string; The class template basic_string stores and manipulates sequences of char-like objects. The class is dependent neither on the character type nor on the nature of operations on that type. The definitions of the operations are supplied via the Traits template parameter - a specialization of std:

std::basic_string::assign

basic_string& assign( size_type count, CharT ch ); (1) basic_string& assign( const basic_string& str ); (2) (3) basic_string& assign( const basic_string& str, size_type pos, size_type count ); (until C++14) basic_string& assign( const basic_string& str, size_type pos, size_type count = npos); (since C++14) basic_string& assign( basic_string&& s

std::basic_string::append

basic_string& append( size_type count, CharT ch ); (1) basic_string& append( const basic_string& str ); (2) (3) basic_string& append( const basic_string& str, size_type pos, size_type count ); (until C++14) basic_string& append( const basic_string& str, size_type pos, size_type count = npos); (since C++14) basic_string& append( const CharT* s,

std::basic_streambuf::underflow

virtual int_type underflow(); Ensures that at least one character is available in the input area by updating the pointers to the input area (if needed) and reading more data in from the input sequence (if applicable). Returns the value of that character (converted to int_type with Traits::to_int_type(c)) on success or Traits::eof() on failure. The function may update gptr, egptr and eback pointers to define the location of newly loaded data (if any). On failure, the function ensures tha

std::basic_streambuf::swap

void swap( basic_streambuf& other ); (since C++11) Exchanges the contents of the stream buffer with those of other. Parameters other - stream buffer to exchange contents with Return value (none). Exceptions (none). Example

std::basic_streambuf::uflow

virtual int_type uflow(); Ensures that at least one character is available in the input area by updating the pointers to the input area (if needed). On success returns the value of that character and advances the value of the get pointer by one character. On failure returns traits::eof(). The function may update gptr, egptr and eback pointers to define the location of newly loaded data (if any). On failure, the function ensures that either gptr() == nullptr or gptr() == egptr. The base

std::basic_streambuf::snextc

int_type snextc(); Advances the input sequence by one character and reads one character. The function calls sbumpc() to advance the input sequence. If that function returns Traits::eof() meaning that input sequence has been exhausted and uflow() could not retrieve more data, Traits::eof() is returned. Otherwise sgetc() is called in order to read the character. Parameters (none). Return value The value of the next character. If the input sequence has been exhausted, Traits::eof() i

std::basic_streambuf::sputn

std::streamsize sputn( const char_type* s, std::streamsize count ); (1) protected: virtual std::streamsize xsputn( const char_type* s, std::streamsize count ); (2) 1) Calls xsputn(s, count) of the most derived class. 2) Writes count characters to the output sequence from the character array whose first element is pointed to by s. The characters are written as if by repeated calls to sputc(). Writing stops when either count characters are written or a call to sputc() would have r