collate


class template
<locale>
template <class charT> class collate;

Facet to compare and hash strings

collate


The collate class provides functions to compare and assist in comparing strings for a specific locale and taking into consideration multi-byte character string, when used.

collate objects are prevented to be locally constructed by having a protected destructor. Only those installed in locale objects should be used through mechanisms such as use_facet.

This template class has one template parameter, representing the character type for which the facet returns information. This template parameter is referred in this entire reference as charT.

Public members

It includes the following public member functions:



Along with the following public member types:



Virtual protected members

The class defines the virtual protected members in charge of implementing the expected behavior of their corresponding public member functions:



Along with the class destructor:


collate specializations: numpunct<char> and numpunct<wchar_t>

Two standard specializations define the standard behavior for the char and wchar_t types. In these, the member function compare uses lexicographical ordering (just like lexicographical_compare).