Namespaces
Variants
Views
Actions

operator<<(std::sub_match)

From cppreference.com
< cpp‎ | regex‎ | sub match
Revision as of 14:50, 8 June 2014 by Roysc (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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().

[edit] Parameters

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

[edit] Return value

os.

[edit] Example