Boost.Locale
|
This class can be used in STL algorithms and containers for comparison of strings with a level other than identical. More...
#include <boost/locale/collator.hpp>
Public Member Functions | |
comparator (const std::locale &l=std::locale(), collate_level level=default_level) | |
bool | operator() (const std::basic_string< CharType > &left, const std::basic_string< CharType > &right) const |
Compare two strings – equivalent to return left < right according to collation rules. | |
This class can be used in STL algorithms and containers for comparison of strings with a level other than identical.
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 level level
std::bad_cast | l does not have collator facet installed |