Standard C++ Library Reference ISO/IEC (VERSION3)
basic_string::size
size_type size() const;
The member function returns the length of the controlled sequence.
basic_string::size_type
typedef T2 size_type;
The unsigned integer type describes an object that can represent the length of any controlled
sequence. It is described here as a synonym for the implementation-defined type T2.
basic_string::substr
basic_string substr(size_type off = 0,
size_type count = npos) const;
The member function returns an object whose controlled sequence is a copy of up to count
elements of the controlled sequence beginning at position off.
basic_string::swap
void swap(basic_string& right);
The member function swaps the controlled sequences between *this and str. If
get_allocator() == right.get_allocator(), it does so in constant time, it throws
no exceptions, and it invalidates no references, pointers, or iterators that designate elements in the
two controlled sequences. Otherwise, it performs a number of element assignments and
constructor calls proportional to the number of elements in the two controlled sequences.
basic_string::traits_type
typedef Tr traits_type;
The type is a synonym for the template parameter Tr.
basic_string::value_type
typedef typename allocator_type::value_type
value_type;
The type is a synonym for allocator_type::value_type.