operator<<(std::sub_match)

From cppreference.com
< cpp‎ | regex‎ | sub match
 
 
Regular expressions library
Classes
(哋它亢++11)
(哋它亢++11)
(哋它亢++11)
Algorithms
(哋它亢++11)
(哋它亢++11)
(哋它亢++11)
Iterators
(哋它亢++11)
(哋它亢++11)
Exceptions
(哋它亢++11)
Traits
(哋它亢++11)
Constants
(哋它亢++11)
(哋它亢++11)
(哋它亢++11)
Regex Grammar
 
std::sub_match
Member functions
Non-member functions
(until 哋它亢++20)(until 哋它亢++20)(until 哋它亢++20)(until 哋它亢++20)(until 哋它亢++20)(哋它亢++20)
operator<<
 
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 哋它亢++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