__GNU_CXX::_CHAR_TYPES(3cxx)
π __gnu_cxx::_Char_types< _CharT > β the libstdc++ manual page, bestie edition
okay so you opened the 3cxx manual page for __gnu_cxx::_Char_types< _CharT > and now you're here. welcome. this is literally the "mapping from character type to associated types" situation, and honestly? it's giving foundational. let's get into it π«Ά
β¨ NAME β¨
__gnu_cxx::_Char_types< _CharT > β mapping from character type to associated types. that's the whole job. that's the assignment. π
π¦ SYNOPSIS π¦
#include <char_traits.h>
πΈ Public Types πΈ
typedef unsigned long int_typeβ theint_type. it'sunsigned long. iconic, no notes. βtypedef std::streamoff off_typeβ theoff_type, which isstd::streamoff. slay.typedef std::streampos pos_typeβ thepos_type, which isstd::streampos. periodt.typedef std::mbstate_t state_typeβ thestate_type, which isstd::mbstate_t. and that's the whole set π
π§ Detailed Description π§
template<typename _CharT>
struct __gnu_cxx::_Char_types< _CharT >
"Mapping from character type to associated types."
that's the struct's actual tagline btw, not me being extra (for once).
okay so listen π β this is a template struct, template<typename _CharT>, and it maps a character type to its associated types. very much a matchmaker. very "you're a char, and these are your types, go thrive together" energy. π
π Note (read this one, fr fr)
this is an implementation class for the generic version of char_traits. it defines int_type, off_type, pos_type, and state_type.
by default, those are:
int_typeβunsigned longoff_typeβstreamoffpos_typeβstreamposstate_typeβmbstate_t
and here's the tea π: if you need a different set of types, but you don't need to change the definitions of any function defined in char_traits, you can specialize __gnu_cxx::_Char_types while leaving __gnu_cxx::char_traits alone. like, hands off. don't touch it. let it live its life. π¦
this is the swap the type map, not the whole traits class move. keep it clean, bestie. β¨
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. so nobody hand-wrote this, it manifested. π₯
π sign-off π
that's the page, bestie β libstdc++, <italic>__gnu_cxx::_Char_types< _CharT >(3cxx)</italic>, and this whole vibe lives in the libstd corner of the manual. go forth and map your character types responsibly. mwah π π
π¦ where this page comes from
- debian trixie: libstdc++-12-doc 12.4.0-5
- debian trixie: libstdc++-13-doc 13.3.0-16
- debian trixie: libstdc++-14-doc 14.2.0-19
- ubuntu noble: libstdc++-10-doc 10.5.0-4ubuntu2
- ubuntu noble: libstdc++-10-doc 10.5.0-4ubuntu2.1
- ubuntu noble: libstdc++-11-doc 11.4.0-9ubuntu1
- ubuntu noble: libstdc++-11-doc 11.5.0-1ubuntu1~24.04.1
- ubuntu noble: libstdc++-12-doc 12.3.0-17ubuntu1
- ubuntu noble: libstdc++-12-doc 12.4.0-2ubuntu1~24.04.1
- ubuntu noble: libstdc++-13-doc 13.2.0-23ubuntu4
- ubuntu noble: libstdc++-13-doc 13.3.0-6ubuntu2~24.04.1
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- ubuntu noble: libstdc++-14-doc 14.2.0-4ubuntu2~24.04.1
- ubuntu questing: libstdc++-11-doc 11.5.0-7ubuntu1
- ubuntu questing: libstdc++-11-doc 11.5.0-7ubuntu1.1
- ubuntu questing: libstdc++-12-doc 12.5.0-6ubuntu1
- ubuntu questing: libstdc++-13-doc 13.4.0-4ubuntu1
- ubuntu questing: libstdc++-14-doc 14.3.0-8ubuntu1
- ubuntu questing: libstdc++-15-doc 15.2.0-4ubuntu4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms