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);
}