Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

std::locale_id(3cxx) [debian man page]

std::locale::id(3cxx)													     std::locale::id(3cxx)

NAME
std::locale::id - SYNOPSIS
Public Member Functions id () size_t _M_id () const throw () Friends template<typename _Facet > bool has_facet (const locale &) throw () class locale class locale::_Impl template<typename _Facet > const _Facet & use_facet (const locale &) Detailed Description Facet ID class. The ID class provides facets with an index used to identify them. Every facet class must define a public static member locale::id, or be derived from a facet that provides this member, otherwise the facet cannot be used in a locale. The locale::id ensures that each class type gets a unique identifier. Definition at line 437 of file locale_classes.h. Constructor &; Destructor Documentation std::locale::id::id () [inline] Constructor. Definition at line 468 of file locale_classes.h. Friends And Related Function Documentation template<typename _Facet > bool has_facet (const locale &) throw () [friend] Test for the presence of a facet. has_facet tests the locale argument for the presence of the facet type provided as the template parameter. Facets derived from the facet parameter will also return true. Parameters: Facet The facet type to test the presence of. locale The locale to test. Returns: true if locale contains a facet of type Facet, else false. template<typename _Facet > const _Facet& use_facet (const locale &) [friend] 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. Parameters: Facet The facet type to access. locale The locale to use. Returns: Reference to facet of type Facet. Exceptions: std::bad_cast if locale doesn't contain a facet of type Facet. Author Generated automatically by Doxygen for libstdc++ from the source code. libstdc++ Tue Nov 27 2012 std::locale::id(3cxx)

Check Out this Related Man Page

std::locale::facet(3cxx)												  std::locale::facet(3cxx)

NAME
std::locale::facet - SYNOPSIS
Inherited by std::__codecvt_abstract_base< _InternT, _ExternT, encoding_state >, std::__codecvt_abstract_base< char, char, mbstate_t >, std::__codecvt_abstract_base< wchar_t, char, mbstate_t >, std::__ctype_abstract_base< wchar_t >, std::__codecvt_abstract_base< _InternT, _ExternT, _StateT >, std::__ctype_abstract_base< _CharT >, std::__moneypunct_cache< _CharT, _Intl >, std::__numpunct_cache< _CharT >, std::__timepunct< _CharT >, std::__timepunct_cache< _CharT >, std::collate< _CharT >, std::ctype< char >, std::messages< _CharT >, std::money_get< _CharT, _InIter >, std::money_put< _CharT, _OutIter >, std::moneypunct< _CharT, _Intl >, std::num_get< _CharT, _InIter >, std::num_put< _CharT, _OutIter >, std::numpunct< _CharT >, std::time_get< _CharT, _InIter >, and std::time_put< _CharT, _OutIter >. Protected Member Functions facet (size_t __refs=0) throw () virtual ~facet () Static Protected Member Functions static __c_locale _S_clone_c_locale (__c_locale &__cloc) throw () static void _S_create_c_locale (__c_locale &__cloc, const char *__s, __c_locale __old=0) static void _S_destroy_c_locale (__c_locale &__cloc) static __c_locale _S_get_c_locale () static const char * _S_get_c_name () throw () static __c_locale _S_lc_ctype_c_locale (__c_locale __cloc, const char *__s) Friends class locale class locale::_Impl Detailed Description Localization functionality base class. The facet class is the base class for a localization feature, such as money, time, and number printing. It provides common support for facets and reference management. Facets may not be copied or assigned. Definition at line 339 of file locale_classes.h. Constructor &; Destructor Documentation std::locale::facet::facet (size_t__refs = 0) throw () [inline], [explicit], [protected] Facet constructor. This is the constructor provided by the standard. If refs is 0, the facet is destroyed when the last referencing locale is destroyed. Otherwise the facet will never be destroyed. Parameters: refs The initial value for reference count. Definition at line 371 of file locale_classes.h. virtual std::locale::facet::~facet () [protected], [virtual] Facet destructor. Author Generated automatically by Doxygen for libstdc++ from the source code. libstdc++ Tue Nov 27 2012 std::locale::facet(3cxx)
Man Page