__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 _CharT no cap
  • using comparison_category β€” yes bestie, there's a comparison category in the building
  • typedef _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, iconic
  • typedef std::fpos< state_type > pos_type β€” a position type, and it's a std::fpos wrapped around state_type 🌸
  • typedef encoding_state state_type β€” the state type is encoding_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