man std::locale_facet (Fonctions bibliothèques) - Localization functionality base class.
NAME
std::locale::facet - Localization functionality base class.
SYNOPSIS
#include <locale>
Inherited by std::__moneypunct_cache< CharT, Intl >, std::__timepunct< CharT >, std::__timepunct_cache< CharT >, std::collate< CharT >, std::ctype< char >, std::ctype_abstract_base< CharT >, 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::numpunct_cache< CharT >, std::time_get< CharT, InIter >, and std::time_put< CharT, OutIter >.
Protected Member Functions
facet (size_t __refs=0) throw ()
Facet constructor.
virtual ~facet ()
Facet destructor.
Static Protected Member Functions
static c_locale S_get_c_locale ()
static const char * S_get_c_name ()
Private Member Functions
void M_add_reference () const throw ()
void M_remove_reference () const throw ()
Static Private Member Functions
static void S_initialize_once ()
Private Attributes
Atomic_word M_refcount
Static Private Attributes
static c_locale S_c_locale
static const char S_c_name [2]
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 343 of file locale.
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 375 of file locale.
facet::~facet () [protected, virtual]
Facet destructor.
Definition at line 195 of file locale.cc.
Author
Generated automatically by Doxygen for libstdc++-v3 Source from the source code.