This class can be used in STL algorithms and containers for comparison of strings with a level other than primary. More...
#include <collator.hpp>
Public Member Functions | |
comparator (std::locale const &l=std::locale(), collator_base::level_type level=default_level) | |
Create a comparator class for locale l and with collation leval level. More... | |
bool | operator() (std::basic_string< CharType > const &left, std::basic_string< CharType > const &right) const |
Compare two strings – equivalent to return left < right according to collation rules. More... | |
This class can be used in STL algorithms and containers for comparison of strings with a level other than primary.
For example:
Would create a map the keys of which are sorted using secondary collation level
|
inline |
Create a comparator class for locale l and with collation leval level.
|
inline |
Compare two strings – equivalent to return left < right according to collation rules.
References compare().