STD::__DETAIL::_BRACKETMATCHER(3)
π NAME π
std::__detail::_BracketMatcher< _TraitsT, __icase, __collate > β bestie, this is the little icon that matches a character range, aka a bracket expression. It's a page from the Library Functions Manual, straight out of libstdc++, and yes she's living in std::__detail because she's an implementation girly. π
β¨ SYNOPSIS β¨
#include <regex>
okay so first thing, she's a template:
template<typename _TraitsT, bool __icase, bool __collate>
struct std::__detail::_BracketMatcher< _TraitsT, __icase, __collate >
π Public Types π
the whole friend group, in order:
typedef _TraitsT::char_class_type _CharClassTβ her char class type eratypedef _TransT::_CharT _CharTβ literally just the char type, no notestypedef _TraitsT::string_type _StringTβ the string type, obsessedtypedef _TransT::_StrTransT _StrTransTβ the string translator typetypedef _RegexTranslator< _TraitsT, __icase, __collate > _TransTβ the translator she's built on top of, and yes__icaseand__collatepass straight through π«Ά
πΈ Public Member Functions πΈ
every single one of them, no gatekeeping:
_BracketMatcher (bool __is_non_matching, const _TraitsT &__traits)β constructor moment, takes abool __is_non_matchingand aconst _TraitsT &__traitsvoid _M_add_char (_CharT __c)β add one char,_CharT __cvoid _M_add_character_class (const _StringT &__s, bool __neg)β add a character class fromconst _StringT &__s, with abool __negfor the negation vibe_StringT _M_add_collate_element (const _StringT &__s)β add a collate element fromconst _StringT &__sand hand back a_StringTvoid _M_add_equivalence_class (const _StringT &__s)β add an equivalence class fromconst _StringT &__svoid _M_make_range (_CharT __l, _CharT __r)β build a range from_CharT __lto_CharT __r, slayvoid _M_ready ()β the final glow-up, call her when setup is donebool operator() (_CharT __ch) constβ the actual vibe check: does_CharT __chmatch? returnsbool, and she'sconstbecause she's not changing for anybody π
π¦ Detailed Description π¦
template<typename _TraitsT, bool __icase, bool __collate>
struct std::__detail::_BracketMatcher< _TraitsT, __icase, __collate >
Matches a character range (bracket expression). that's it, that's the whole assignment, and she ate. π₯
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. not a human author, just a robot doing her best, and honestly? respect. π
no cap, every option, type, and signature up there is copied character-for-character, so don't come for me if you typo a template param β that's on you bestie π
mwah π this was std::__det..._collate >(3) from the libstdc++ crew, served fresh from that Library Functions Manual, and that's the whole page. periodt. πβ¨
π¦ 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