cpp/locale/collate byname

is a std facet which encapsulates locale-specific collation (comparison) and hashing of strings. Just like std, it can be imbued in std and applied, by means of, directly to all standard algorithms that expect a string comparison predicate.

Specializations
The standard library is guaranteed to provide the following specializations: