Classes and functions for internationalization and localization.
template<typename _Facet>
| const _Facet & std::use_facet |
( |
const locale & | __loc | ) |
|
|
inlinenodiscard |
Return a facet.
use_facet looks for and returns a reference to a facet of type Facet where Facet is the template parameter. If has_facet(locale) is true, there is a suitable facet to return. It throws std::bad_cast if the locale doesn't contain a facet of type Facet.
- Template Parameters
-
| _Facet | The facet type to access. |
- Parameters
-
- Returns
- Reference to facet of type Facet.
- Exceptions
-
Definition at line 220 of file locale_classes.tcc.
Referenced by std::money_get< _CharT, _InIter >::do_get(), std::time_get< _CharT, _InIter >::do_get(), std::time_get< _CharT, _InIter >::do_get_date(), std::time_get< _CharT, _InIter >::do_get_monthname(), std::time_get< _CharT, _InIter >::do_get_time(), std::time_get< _CharT, _InIter >::do_get_weekday(), std::time_get< _CharT, _InIter >::do_get_year(), std::money_put< _CharT, _OutIter >::do_put(), std::time_put< _CharT, _OutIter >::do_put(), std::time_get< _CharT, _InIter >::get(), isalnum(), isalpha(), isblank(), iscntrl(), std::regex_traits< _Ch_type >::isctype(), isdigit(), isgraph(), islower(), isprint(), ispunct(), isspace(), isupper(), isxdigit(), std::regex_traits< _Ch_type >::lookup_classname(), std::regex_traits< _Ch_type >::lookup_collatename(), std::basic_ostream< _CharT, _Traits >::operator<<(), std::basic_istream< _CharT, _Traits >::operator>>(), operator>>(), operator>>(), std::time_put< _CharT, _OutIter >::put(), tolower(), toupper(), std::regex_traits< _CharT >::transform(), std::regex_traits< _CharT >::transform_primary(), std::regex_traits< _CharT >::translate_nocase(), std::regex_traits< _Ch_type >::value(), and ws().