![]() |
![]()
| ![]() |
![]()
NAMEstd::use_facet - std::use_facet Synopsis Defined in header <locale>
Parametersloc - the locale object to query Return value Returns a reference to the facet. The reference returned by this
function is valid
Exceptionsstd::bad_cast if std::has_facet<Facet>(loc) == false. ExampleDisplay the 3-letter currency name used by the user's preferred locale // Run this code
Output:Your currency string is USD See also locale set of polymorphic facets that encapsulate cultural
differences
|