STD::__DETAIL::_EXECUTOR(3)
π std::__detail::_Executor< _BiIter, _Alloc, _TraitsT > π
okay bestie, welcome to section 3 of the manual β Library Functions Manual energy β and today's main character is std::__detail::_Executor< _BiIter, _Alloc, _TraitsT >, which literally just takes a regex and an input string and does the matching. that's it. that's the job. and it ate. π
β¨ NAME β¨
std::__detail::_Executor< _BiIter, _Alloc, _TraitsT > β takes a regex and an input string and does the matching. π¦
πΈ SYNOPSIS πΈ
#include <regex>
π PUBLIC TYPES π
the little name-tags this class hands out, no cap:
_CharTβtypedef iterator_traits< _BiIter >::value_type _CharT, i.e. the character type your iterator is serving up β¨_ClassTβtypedef _TraitsT::char_class_type _ClassT, the char-class type straight off your traits template π_FlagTβtypedef regex_constants::match_flag_type _FlagT, the match-flags type, iconic for controlling how matching behaves π_NFATβtypedef _NFA< _TraitsT > _NFAT, the NFA flavor of your traits π_RegexTβtypedef basic_regex< _CharT, _TraitsT > _RegexT, your actual regex type, the whole point tbh π₯_ResultsVecβtypedef ::vector< sub_match< _BiIter >, _Alloc > _ResultsVec, the vector where all the submatch results get to live π
π«Ά PUBLIC MEMBER FUNCTIONS π«Ά
_Executor (_BiIter __begin, _BiIter __end, _ResultsVec &__results, const _RegexT &__re, _FlagT __flags, bool __use_dfs)β the constructor, bestie. you hand it the beginning, the end, a results vector, the regex, the flags, and abooltelling it whether to do the DFS thing. β¨bool _M_match ()β does the matching. yes that's the one. πbool _M_search ()β does the searching. πbool _M_search_from_first ()β does the searching, but from first. starting fresh, main character energy π
π PUBLIC ATTRIBUTES π
the whole cast, and yes every single one of them shows up:
_BiIter _M_beginβ where it all begins π_ResultsVec _M_cur_resultsβ the results it's currently vibing with_BiIter _M_currentβ the current position, the now, the momentconst _BiIter _M_endβ where it all ends, and it'sconstso don't even try π«_FlagT _M_flagsβ the match flags::vector< _ExecutorFrame< _BiIter > > _M_framesβ the stack of executor framesbool _M_has_solβ does it have sol? yes/no,boolsays it all::vector< pair< _StateIdT, _ResultsVec > > _M_match_queueβ the match queue, a whole vector of state-id + results pairs πconst _NFAT & _M_nfaβ a reference to the NFA,constand unbothered πconst _RegexT & _M_reβ a reference to the regex, alsoconst, also unbothered π₯::vector< pair< _BiIter, int > > _M_rep_countβ the repeat counts, iterator +intpairs, one for each π_ResultsVec & _M_resultsβ a reference to the results vectorconst _Search_mode _M_search_modeβ the search mode,const, final, periodt π_BiIter _M_sol_posβ the sol position_StateIdT _M_startβ the start statebool * _M_visited_statesβ a pointer to the visited states, so it remembers where it's been π
π¦ DETAILED DESCRIPTION π¦
β¨ template<typename _BiIter, typename _Alloc, typename _TraitsT> β¨
π class std::__detail::_Executor< _BiIter, _Alloc, _TraitsT > π
"Takes a regex and an input string and does the matching.
The _Executor class has two modes: DFS mode and BFS mode, controlled by the function parameter __search_mode. π
π AUTHOR π
Generated automatically by Doxygen for libstdc++ from the source code. π€β¨
fr fr, that's the whole page. no notes. π«Ά
okay bye bestie, this one came straight out of libstdc++ β section 3, Library Functions Manual, Doxygen-generated and all β and that footer line? it's just libstdc++ holding it down with std::__det... _TraitsT >(3), iykyk. πππ¦
π¦ 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