std::locale::facet(3cxx)
πΈ NAME πΈ
Okay bestie, this is the std::locale::facet(3cxx) page β the C++ localization base-class moment. Its whole vibe is: localization functionality base class. π
β¨ SYNOPSIS β¨
#include <locale>
And it gets inherited by a whole little icon army. Hereβs the exact roster, no cap:
Inherited by std::__codecvt_abstract_base< _InternT, _ExternT,
encoding_state >, std::__codecvt_abstract_base< char, char, mbstate_t >,
std::__codecvt_abstract_base< char16_t, char, mbstate_t >,
std::__codecvt_abstract_base< char32_t, char, mbstate_t >,
std::__codecvt_abstract_base< wchar_t, char, mbstate_t >,
std::__codecvt_abstract_base< _Elem, 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 (const facet &)=deleteβ copying is deleted, bestie. Not today.facet (size_t __refs=0) throw ()β the facet constructor. We get into it below.virtual ~facet ()β the facet destructor.facet & operator= (const facet &)=deleteβ assignment is also deleted. It said no thank you.
π Static Protected Member Functions
These are the static protected squad. The original didnβt hand each one a lil blurb, so Iβm keeping the signatures exact and not inventing fake lore:
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 localeclass locale::_Impl
π Detailed Description
Localization functionality base class. Thatβs the headline, and itβs literally the whole point.
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. Very infrastructure. Very behind-the-scenes main character energy. β¨
Facets may not be copied or assigned. Thatβs a hard no, bestie. π«
π οΈ Constructor & Destructor Documentation
π std::locale::facet::facet (size_t __refs = 0) [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. So yeah, that reference count is kind of a big deal. π
π Parameters
__refsβ The initial value for reference count.
π virtual std::locale::facet::~facet () [protected], [virtual]
Facet destructor. Short, sweet, and virtual. π
π Author
Generated automatically by Doxygen for libstdc++ from the source code.
Source/version: libstdc++ Β· page: std::locale::facet(3cxx) Β· date: not shown on the original page, so Iβm not inventing one. Bye bestie! π
β¨
π¦ where this page comes from
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms