<regex>

std::smatch

typedef match_results<string::const_iterator> smatch;
string 物件的 match_results
這是 match_results 類模板的例項化,用於在 string 物件上進行匹配(使用string::const_iterator作為其迭代器型別)。

此類成員與 match_results 中描述的相同,但使用string::const_iterator作為其 BidirectionalIterator 模板引數。

有關更多資訊,請參閱 match_results

另見