cpp/string/char traits

The class is a traits class template that abstracts basic character and string operations for a given character type. The defined operation set is such that generic algorithms almost always can be implemented in terms of it. It is thus possible to use such algorithms with almost any possible character or string type, just by supplying a customized class.

The class template serves as a basis for explicit instantiations. The user can provide a specialization for any custom character types. Several specializations are defined for the standard character types.

If an operation on traits emits an exception, the behavior is undefined.

Standard specializations
Member typedefs of standard specializations are as follows:

The semantics of the member functions of standard specializations are defined are as follows:

Standard specializations of class template satisfy the requirements of.