A RetroSearch Logo

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

Search Query:

Showing content from https://en.cppreference.com/w/cpp/language/../algorithm/../algorithm/../locale/locale/id.html below:

std::locale::id - cppreference.com

The class std::locale::id provides implementation-specific identification of a locale facet. Each facet has a public static member named id of type std::locale::id and each std::locale object maintains a list of facets it implements, indexed by their ids.

Facets with the same id belong to the same facet category and replace each other when added to a locale object.

[edit] Member functions constructs a new id
(public member function) copy assignment operator is deleted
(public member function) [edit] Example

The following example shows how to construct a minimal custom facet.

Output:

has_facet<myfacet>(myloc) returns true
[edit] See also the base class for all facet categories: each facet of any category is derived from this type
(class) [edit]

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