STD::MESSAGES_BYNAME(3)
π NAME π
okay bestie, gather round, because today we're meeting std::messages_byname< _CharT > β it's the class messages_byname, and yes that's its whole government name, section [22.2.7.2] in the standard, no cap. β¨
π¦ SYNOPSIS π¦
#include <locale>
and also, real quick, it inherits from std::messages< _CharT > β so everything that facet does, this one's doing it too. family trait moment π
πΈ Public Types πΈ
typedef int catalogβ the type it uses to keep track of catalogs, it's literally just aninttypedef _CharT char_typeβ the character type, whatever_CharTis, that's what she istypedef basic_string< _CharT > string_typeβ a string of those characters, iconic
π Public Member Functions π
messages_byname (const char *__s, size_t __refs=0)β construct her from a C string namemessages_byname (const string &__s, size_t __refs=0)β and also from astringname, we love optionsvoid close (catalog __c) constβ closes a catalogstring_type get (catalog __c, int __set, int __msgid, const string_type &__s) constβ fetches a message out of a catalogcatalog open (const basic_string< char > &, const locale &, const char *) constβ opens a catalog, three-argument flavorcatalog open (const basic_string< char > &__s, const locale &__loc) constβ and the two-argument flavor,__sand__loc
β Static Public Attributes β
static locale::id idβ and the docs literally describe it as the Numpunct facet id. yes bestie, that's what it says. we're just relaying the message π
π Protected Member Functions π
string_type _M_convert_from_char (char *) constchar * _M_convert_to_char (const string_type &__msg) constvirtual void do_close (catalog) constvoid do_close (catalog) constvoid do_close (catalog) constβ yep. three of them. the same signature, listed three times. not me questioning the docs, just reporting π«Άstring do_get (catalog, int, int, const string &) constβ described as "Specializations for required instantiations."virtual string_type do_get (catalog, int, int, const string_type &__dfault) constwstring do_get (catalog, int, int, const wstring &) constvirtual catalog do_open (const basic_string< char > &, const locale &) constmessages< wchar_t >::catalog do_open (const basic_string< char > &, const locale &) constmessages< char >::catalog do_open (const basic_string< char > &, const locale &) const
π§ 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)
π Protected Attributes π
__c_locale _M_c_locale_messagesconst char * _M_name_messages
β¨ DETAILED DESCRIPTION β¨
template<typename _CharT>
class std::messages_byname< _CharT >
and the description is, and I quote, "class messages_byname [22.2.7.2]. β she's a template over _CharT, that's the whole vibe. π₯
π MEMBER FUNCTION DOCUMENTATION π
string std::messages< char >::do_get (catalog , int , int , const string & ) const [protected], [inherited]β note the[protected]and[inherited]tags, she got this from her parent. and the note: "Specializations for required instantiations."
π MEMBER DATA DOCUMENTATION π
template<typename _CharT> locale::id std::messages< _CharT >::id [static], [inherited]β static, inherited, and described as the Numpunct facet id. it's giving mysterious but okay π
π AUTHOR π
Generated automatically by Doxygen for libstdc++ from the source code. so likeβ¦ no human wrote this, a robot did, and honestly? it ate. π€β¨
mwah bestie, that's the whole page π this gem comes to you straight from libstdc++ β that's the source and the version, slay β and the footer's std::messa...< _CharT >(3) manual tag, which is just the truncated name being cute about it. stay locale-aware, drink water, and always close your catalogs π«ΆπΈ
π¦ where this page comes from
- arch rolling: gcc 16.2.1+r23+gd564253eb6c8-1 Β· GPL-3.0-or-later WITH GCC-exception-3.1 AND GFDL-1.3-or-later
- fedora 44: libstdc++-docs 16.0.1-0.10.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
- fedora 44: libstdc++-docs 16.2.1-2.fc44
- fedora 44: libstdc++-docs 16.2.1-3.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms