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 id
s.
Facets with the same id
belong to the same facet category and replace each other when added to a locale object.
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
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