A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cplusplus.com/reference/locale/collate_byname/ below:

class template

<locale>

std::collate_byname
template <class charT> class collate_byname;

Facet to compare and hash strings


The collate_byname standard facet overrides collate virtual members to implement its semantics for particular named locales.

Its public interface is the same as collate's, except that its constructor takes an additional std_name argument:

1
explicit collate_byname (const char* std_name, size_t refs = 0);
1
2
explicit collate_byname (const char* std_name, size_t refs = 0);
explicit collate_byname (const string& std_name, size_t refs = 0);


Where std_name is the name of a C locale. The C locales available depend on the system and library implementation, but at least the following are guaranteed to exist on all implementations:
locale name description "C" Minimal "C" locale (the same as locale::classic) "" The environment's default locale
Specializations At least the following specializations of this template are provided in all library implementations:
specialization collate_byname<char> collate_byname<wchar_t>

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4