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 ( ) ;
(начиная с C++11)

Конструирует объект std::sub_match по умолчанию. Член matched устанавливается в false , а унаследованные члены first и second инициализируются значениями по умолчанию.

Это единственный общедоступный и определенный конструктор.

Пример

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