cpp/string/basic string

The class template stores and manipulates sequences of character-like objects, which are non-array objects of trivial standard-layout type. 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 template parameter - a specialization of std or a compatible traits class. and must name the same type; otherwise the program is ill-formed.

The elements of a are stored contiguously, that is, for a ,  for any  in ; or, equivalently, a pointer to  can be passed to functions that expect a pointer to the first element of  of.

satisfies the requirements of (except that customized / are not used for construction/destruction of elements),.

Several typedefs for common character types are provided: