Namespaces
Variants

std::sub_match<BidirIt>:: sub_match

From cppreference.net
Regular expressions library
Classes
(C++11)
Algorithms
Iterators
Exceptions
Traits
Constants
(C++11)
Regex Grammar
constexpr sub_match ( ) ;
(desde C++11)

Construye por defecto un std::sub_match . El miembro matched se establece en false y los miembros heredados first y second son inicializados por valor.

Este es el único constructor definido y accesible públicamente.

Ejemplo

#include <cassert>
#include <regex>
int main()
{
    std::sub_match<const char*> s;
    assert(!s.matched);
}