std::match_results::format
| template< class OutputIt >
OutputIter format( OutputIt out, |
(1) | (since C++11) |
| template< class OutputIt, class ST, class SA >
OutputIter format( OutputIt out, |
(2) | (since C++11) |
| template< class ST, class SA >
std::basic_string<char_type,ST,SA> |
(3) | (since C++11) |
| string_type format( const char_type* fmt_s,
std::regex_constants::match_flag_type flags = |
(4) | (since C++11) |
Copies the given format character sequence replacing each format specifier or escape sequence with either the characters it represents or characters within *this to which it refers to. The bitmasks specified by flags determine which format specifiers and escape sequences are recognized.
The behavior is undefined if ready() != true.
[fmt_first, fmt_last). The resulting character sequence is copied to out.fmt. The resulting character sequence is copied to out.fmt and fmt_s respectively. The resulting character sequence is copied to a newly constructed string, which is returned.
Contents |
[edit] Parameters
| fmt_begin, fmt_end | - | pointers to a range of characters defining the format character sequence | ||
| fmt | - | string defining the format character sequence | ||
| fmt_s | - | pointer to a null-terminated character string defining the format character sequence | ||
| out | - | iterator where to copy the resulting character sequence to | ||
| flags | - | bitmask type specifying which format specifiers and escape sequences are recognized
|
||
| Type requirements | ||||
-
OutputIt must meet the requirements of OutputIterator.
| ||||
[edit] Return value
out
[edit] Exceptions
(none)
[edit] Example
| This section is incomplete Reason: no example |