- regex[meta header]
- std[meta namespace]
- sub_match[meta class]
- function[meta id-type]
- cpp11[meta cpp]
constexpr sub_match();sub_match オブジェクトを構築する
is_default_constructible<iterator>::value == true であること。
各メンバ変数(first、second、matched)を値初期化する。
#include <iostream>
#include <regex>
int main()
{
std::csub_match s;
std::cout << std::boolalpha
<< (s.first == nullptr) << std::endl
<< (s.second == nullptr) << std::endl
<< s.matched << std::endl;
}- csub_match[color ff0000]
true
true
false
- C++11
- Clang: 3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6
- GCC: 4.9.0, 4.9.1, 5.0.0
- ICC: ??
- Visual C++: ??