operator<<(std::sub_match)

operator<<(std::sub_match)

template< class CharT, class Traits, class BidirIt >
std::basic_ostream<CharT,Traits>&
    operator<<( std::basic_ostream<CharT,Traits>& os, 
                const sub_match<BidirIt>& m );
(since C++11)

Writes the representation of the matched subsequence m to the output stream os.

Equivalent to os << m.str().

Parameters

os - output stream to write the representation to
m - a sub-match object to output

Return value

os.

Example

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/regex/sub_match/operator_ltlt

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部