__GNU_CXX::ENCODING_CHAR_TRAITS(3)
π NAME π
__gnu_cxx::encoding_char_traits< _CharT > β bestie, this is literally encoding_char_traits, and it's serving character-traits energy for encoded text π
β¨ SYNOPSIS β¨
okay so first things first, you gotta pull it in:
#include <codecvt_specializations.h>
and heads up, it inherits from std::char_traits< _CharT >, so it's giving legacy family lineage π
π Public Types π
typedef _CharT char_typeβ the character type, it's literally just_CharTno capusing comparison_categoryβ yes bestie, there's a comparison category in the buildingtypedef _Char_types< _CharT >::int_type int_typeβ the int type, borrowed straight from_Char_types< _CharT >typedef _Char_types< _CharT >::off_type off_typeβ the offset type, same source, iconictypedef std::fpos< state_type > pos_typeβ a position type, and it's astd::fposwrapped aroundstate_typeπΈtypedef encoding_state state_typeβ the state type isencoding_state, periodt
π¦ Static Public Member Functions π¦
here's the whole squad, every single one of them, exactly as written:
static constexpr void assign (char_type &__c1, const char_type &__c2)
static constexpr char_type * assign (char_type *__s, std::size_t __n,
char_type __a)
static constexpr int compare (const char_type *__s1, const char_type
*__s2, std::size_t __n)
static constexpr char_type * copy (char_type *__s1, const char_type
*__s2, std::size_t __n)
static constexpr int_type eof ()
static constexpr bool eq (const char_type &__c1, const char_type &__c2)
static constexpr bool eq_int_type (const int_type &__c1, const int_type
&__c2)
static constexpr const char_type * find (const char_type *__s,
std::size_t __n, const char_type &__a)
static constexpr std::size_t length (const char_type *__s)
static constexpr bool lt (const char_type &__c1, const char_type &__c2)
static constexpr char_type * move (char_type *__s1, const char_type
*__s2, std::size_t __n)
static constexpr int_type not_eof (const int_type &__c)
static constexpr char_type to_char_type (const int_type &__c)
static constexpr int_type to_int_type (const char_type &__c)
every one of these is static constexpr, so like, they're compile-time girlies, main character energy for real π
π Detailed Description π
template<typename _CharT>
struct __gnu_cxx::encoding_char_traits< _CharT >
and that's the whole vibe: it's a struct templated on _CharT, named encoding_char_traits π«Ά
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. no human hand-wrote this one bestie, the robots did it π
and that's a wrap!! this page is brought to you by libstdc++, living in the Library Functions Manual, and if you made it all the way down here you're lowkey a legend πβ¨ bye bestie, go write some encoding-aware code π
π¦ 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