---
name: "std::__detail::_Executor"
section: "3cxx"
platform: "linux"
package: "libstdc++-12-doc"
version: "12.4.0-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/std::__detail::_Executor/3cxx"
---

# std::\_\_detail::\_Executor(3cxx)

Takes a regex and an input string and does the matching.

## NAME

std::\_\_detail::\_Executor\< \_BiIter, \_Alloc, \_TraitsT, \_\_dfs\_mode \> - Takes a regex and an input string and does the matching.

## SYNOPSIS

`#include <regex>`

### Public Types

**typedef** **iterator\_traits**\< \_BiIter \>::value\_type **\_CharT**\
 **typedef** \_TraitsT::char\_class\_type **\_ClassT**\
 **typedef** **regex\_constants::match\_flag\_type** **\_FlagT**\
 **typedef** \_NFA\< \_TraitsT \> **\_NFAT**\
 **typedef** **basic\_regex**\< \_CharT, \_TraitsT \> **\_RegexT**\
 **typedef** ::vector\< **sub\_match**\< \_BiIter \>, \_Alloc \> **\_ResultsVec**\

### Public Member Functions

**\_Executor** (\_BiIter \_\_begin, \_BiIter \_\_end, **\_ResultsVec** &**\_\_results**, const **\_RegexT** &**\_\_re**, **\_FlagT** \_\_flags)\
 bool **\_M\_match** ()\
 bool **\_M\_search** ()\
 bool **\_M\_search\_from\_first** ()\

### Public Attributes

\_BiIter **\_M\_begin**\
 **\_ResultsVec** **\_M\_cur\_results**\
 \_BiIter **\_M\_current**\
 const \_BiIter **\_M\_end**\
 **\_FlagT** **\_M\_flags**\
 bool **\_M\_has\_sol**\
 const **\_NFAT** & **\_M\_nfa**\
 const **\_RegexT** & **\_M\_re**\
 ::vector\< **pair**\< \_BiIter, int \> \> **\_M\_rep\_count**\
 **\_ResultsVec** & **\_M\_results**\
 \_State\_info\< **\_\_search\_mode**, **\_ResultsVec** \> **\_M\_states**\

## Detailed Description

### template\<typename \_BiIter, typename \_Alloc, typename \_TraitsT, bool \_\_dfs\_mode\>

class std::\_\_detail::\_Executor\< \_BiIter, \_Alloc, \_TraitsT, \_\_dfs\_mode \>"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 template parameter \_\_dfs\_mode.

## Author

Generated automatically by Doxygen for libstdc++ from the source code.
