std::__detail(3cxx)
πΈ NAME πΈ
hey bestie, welcome to std::__detail in the 3cxx manual π
this is the backstage zone: implementation details not part of the namespace std interface. literally the βdo not cite me in publicβ part of the library, no cap π«Ά
π¦ SYNOPSIS π¦
β¨ Classes β¨
struct _BracketMatcherβ matches a character range (bracket expression) πclass _Compilerβ builds an NFA from an input iterator range.class _Executorβ takes a regex and an input string and does the matching.struct _List_node_baseβ the common part of a node in the list.struct _List_node_headerβ the list node header.struct _Quoted_stringβ struct for delimited strings.class _Scannerβ scans an input range for regex tokens.class _StateSeqβ describes a sequence of one or more_State, its current start and end(s). This structure contains fragments of an NFA during construction. iconic regex-construction behavior β¨
π Typedefs π
__bare_timed_waitβusing __bare_timed_wait = __timed_waiter< std::false_type >__bare_waitβusing __bare_wait = __waiter< std::false_type >__clamp_iter_catβtemplate<typename _Cat , typename _Limit , typename _Otherwise = _Cat> using __clamp_iter_cat = __conditional_t< derived_from< _Cat, _Limit >, _Limit, _Otherwise >__cmp3way_res_tβtemplate<typename _Tp , typename _Up > using __cmp3way_res_t = decltype(std::declval< _Tp >()<=> std::declval< _Up >())__enters_timed_waitβusing __enters_timed_wait = __timed_waiter< std::true_type >__enters_waitβusing __enters_wait = __waiter< std::true_type >__platform_wait_tβusing __platform_wait_t = unsigned int__unsigned_least_tβtemplate<typename _Tp > using __unsigned_least_t = typename __to_chars_unsigned_type< _Tp >::type__wait_clock_tβusing __wait_clock_t = chrono::steady_clock_Matcherβtemplate<typename _CharT > using _Matcher = std::function< bool(_CharT)>_StateIdTβtypedef long _StateIdT
π₯ Enumerations π₯
_Opcodeβ operation codes that define the type of transitions within the base NFA that represents the regular expression π
enum _Opcode : int { _S_opcode_unknown, _S_opcode_alternative,
_S_opcode_repeat, _S_opcode_backref, _S_opcode_line_begin_assertion,
_S_opcode_line_end_assertion, _S_opcode_word_boundary,
_S_opcode_subexpr_lookahead, _S_opcode_subexpr_begin,
_S_opcode_subexpr_end, _S_opcode_dummy, _S_opcode_match,
_S_opcode_accept }
enum class _RegexExecutorPolicy : intβ{ _S_auto, _S_alternate }
π Functions π
__abs_rβtemplate<typename _Res , typename _Tp > constexpr _Res __abs_r (_Tp __val)__abs_r(deleted bool version) βtemplate<typename > void __abs_r (bool)=delete__atomic_compareβtemplate<typename _Tp > bool __atomic_compare (const _Tp &__a, const _Tp &__b)__atomic_spinβtemplate<typename _Pred , typename _Spin = __default_spin_policy> bool __atomic_spin (_Pred &__pred, _Spin __spin=_Spin{ }) noexcept__char_traits_cmp_catβtemplate<typename _ChTraits > constexpr auto __char_traits_cmp_cat (int __cmp) noexcept__common_cmp_catβtemplate<typename... _Ts> constexpr auto __common_cmp_cat ()__cond_wait_untilβtemplate<typename _Clock , typename _Dur > bool __cond_wait_until (__condvar &__cv, mutex &__mx, const chrono::time_point< _Clock, _Dur > &__atime)__cond_wait_until_implβtemplate<typename _Clock , typename _Dur > bool __cond_wait_until_impl (__condvar &__cv, mutex &__mx, const chrono::time_point< _Clock, _Dur > &__atime)__erase_nodes_ifβtemplate<typename _Container , typename _UnsafeContainer , typename _Predicate > _Container::size_type __erase_nodes_if (_Container &__cont, _UnsafeContainer &__ucont, _Predicate __pred)__extract_paramsβtemplate<typename _ValT , typename _CharT , typename _Traits > basic_istream< _CharT, _Traits > & __extract_params (basic_istream< _CharT, _Traits > &__is, vector< _ValT > &__vals, size_t __n)__from_chars_alnumβtemplate<bool _DecOnly, typename _Tp > constexpr bool __from_chars_alnum (const char *&__first, const char *__last, _Tp &__val, int __base)β this is thestd::from_charsimplementation for integers in any base. If_DecOnlyis true, then we may assume__baseis at most 10 π__from_chars_alnum_to_valβtemplate<bool _DecOnly = false> constexpr unsigned char __from_chars_alnum_to_val (unsigned char __c)__from_chars_pow2_baseβtemplate<bool _DecOnly, typename _Tp > constexpr bool __from_chars_pow2_base (const char *&__first, const char *__last, _Tp &__val, int __base)β this is thestd::from_charsimplementation for integers in a power-of-two base. If_DecOnlyis true, then we may assume__baseis at most 8 β¨__gcdβtemplate<typename _Tp > constexpr _Tp __gcd (_Tp __m, _Tp __n)__p1_representable_as_doubleβtemplate<typename _Tp > constexpr bool __p1_representable_as_double (_Tp __x) noexcept__raise_and_addβtemplate<typename _Tp > constexpr bool __raise_and_add (_Tp &__val, int __base, unsigned char __c)__regex_algo_implβtemplate<typename _BiIter , typename _Alloc , typename _CharT , typename _TraitsT > bool __regex_algo_impl (_BiIter __s, _BiIter __e, match_results< _BiIter, _Alloc > &__m, const basic_regex< _CharT, _TraitsT > &__re, regex_constants::match_flag_type __flags, _RegexExecutorPolicy __policy, bool __match_mode)__representable_as_doubleβtemplate<typename _Tp > constexpr bool __representable_as_double (_Tp __x) noexcept__return_temporary_bufferβtemplate<typename _Tp > void __return_temporary_buffer (_Tp *__p, size_t __len)__thread_relaxβvoid __thread_relax () noexcept__thread_yieldβvoid __thread_yield () noexcept__to_charsβtemplate<typename _Tp > constexpr to_chars_result __to_chars (char *__first, char *__last, _Tp __val, int __base) noexcept__to_chars_10βtemplate<typename _Tp > constexpr to_chars_result __to_chars_10 (char *__first, char *__last, _Tp __val) noexcept__to_chars_10_implβtemplate<typename _Tp > constexpr void __to_chars_10_impl (char *__first, unsigned __len, _Tp __val) noexcept__to_chars_16βtemplate<typename _Tp > constexpr to_chars_result __to_chars_16 (char *__first, char *__last, _Tp __val) noexcept__to_chars_2βtemplate<typename _Tp > constexpr to_chars_result __to_chars_2 (char *__first, char *__last, _Tp __val) noexcept__to_chars_8βtemplate<typename _Tp > constexpr to_chars_result __to_chars_8 (char *__first, char *__last, _Tp __val) noexcept__to_chars_lenβtemplate<typename _Tp > constexpr unsigned __to_chars_len (_Tp __value, int __base) noexcept__to_chars_len_2βtemplate<typename _Tp > constexpr unsigned __to_chars_len_2 (_Tp __value) noexcept__to_wait_clock(first overload) βtemplate<typename _Dur > __wait_clock_t::time_point __to_wait_clock (const chrono::time_point< __wait_clock_t, _Dur > &__atime) noexcept__to_wait_clock(second overload) βtemplate<typename _Clock , typename _Dur > __wait_clock_t::time_point __to_wait_clock (const chrono::time_point< _Clock, _Dur > &__atime) noexceptoperator<<(quoted string inserter) βtemplate<typename _CharT , typename _Traits , typename _String > std::basic_ostream< _CharT, _Traits > & operator<< (std::basic_ostream< _CharT, _Traits > &__os, const _Quoted_string< _String, _CharT > &__str)β inserter for quoted strings πoperator<<(const char pointer quoted string inserter) βtemplate<typename _CharT , typename _Traits > std::basic_ostream< _CharT, _Traits > & operator<< (std::basic_ostream< _CharT, _Traits > &__os, const _Quoted_string< const _CharT *, _CharT > &__str)β inserter for quoted strings πoperator>>(quoted string extractor) βtemplate<typename _CharT , typename _Traits , typename _Alloc > std::basic_istream< _CharT, _Traits > & operator>> (std::basic_istream< _CharT, _Traits > &__is, const _Quoted_string< basic_string< _CharT, _Traits, _Alloc > &, _CharT > &__str)β extractor for delimited strings. The left and right delimiters can be different π
π«Ά Variables π«Ά
__atomic_spin_countβconstexpr auto __atomic_spin_count__atomic_spin_count_relaxβconstexpr auto __atomic_spin_count_relax__cmp_cat_idβtemplate<typename _Tp > constexpr unsigned __cmp_cat_id__cmp_cat_id< partial_ordering >βtemplate<> constexpr unsigned __cmp_cat_id< partial_ordering >__cmp_cat_id< strong_ordering >βtemplate<> constexpr unsigned __cmp_cat_id< strong_ordering >__cmp_cat_id< weak_ordering >βtemplate<> constexpr unsigned __cmp_cat_id< weak_ordering >__platform_wait_alignmentβconstexpr size_t __platform_wait_alignment_S_invalid_state_idβconstexpr _StateIdT _S_invalid_state_id
π Detailed Description π
Implementation details not part of the namespace std interface. thatβs the whole mood, bestie β itβs giving βbackstage pass only, public API said noβ π¦
π Function Documentation π
π std::__detail::__from_chars_alnum π
template<bool _DecOnly, typename _Tp > constexpr bool
std::__detail::__from_chars_alnum (const char *& __first, const char *
__last, _Tp & __val, int __base) [constexpr]
this is the std::from_chars implementation for integers in any base. If _DecOnly is true, then we may assume __base is at most 10 β¨
π std::__detail::__from_chars_pow2_base π
template<bool _DecOnly, typename _Tp > constexpr bool
std::__detail::__from_chars_pow2_base (const char *& __first, const char
* __last, _Tp & __val, int __base) [constexpr]
this is the std::from_chars implementation for integers in a power-of-two base. If _DecOnly is true, then we may assume __base is at most 8 πΈ
π std::__detail::operator<< (quoted string inserter) π
template<typename _CharT , typename _Traits , typename _String >
std::basic_ostream< _CharT, _Traits > & std::__detail::operator<<
(std::basic_ostream< _CharT, _Traits > & __os, const _Quoted_string<
_String, _CharT > & __str)
inserter for quoted strings π
π std::__detail::operator<< (const char pointer quoted string inserter) π
template<typename _CharT , typename _Traits > std::basic_ostream< _CharT,
_Traits > & std::__detail::operator<< (std::basic_ostream< _CharT,
_Traits > & __os, const _Quoted_string< const _CharT *, _CharT > &
__str)
inserter for quoted strings π
π std::__detail::operator>> (quoted string extractor) π
template<typename _CharT , typename _Traits , typename _Alloc >
std::basic_istream< _CharT, _Traits > & std::__detail::operator>>
(std::basic_istream< _CharT, _Traits > & __is, const _Quoted_string<
basic_string< _CharT, _Traits, _Alloc > &, _CharT > & __str)
extractor for delimited strings. The left and right delimiters can be different π
References:
std::basic_ios< _CharT, _Traits >::clear()std::ios_base::flags()std::basic_ios< _CharT, _Traits >::good()std::ios_base::setf()std::ios_base::skipwsstd::basic_istream< _CharT, _Traits >::unget()
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. slay, automated documentation behavior π
okay thatβs the whole page, bestie β footer source/version vibe is libstdc++, the manual name is std::__detail(3cxx), and ngl thereβs no date printed on this footer. mwah π
π¦ where this page comes from
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms