std::println
From cppreference.com
Defined in header <print>
|
||
template< class... Args > void println( std::format_string<Args...> fmt, Args&&... args ); |
(1) | (since C++23) |
template< class... Args > void println( std::FILE* stream, |
(2) | (since C++23) |
void println(); |
(3) | (since C++26) |
void println( std::FILE* stream ); |
(4) | (since C++26) |
Format args according to the format string fmt with appended '\n' (which means that each output ends with a new-line), and print the result to a stream.
1) Equivalent to std::println(stdout, fmt, std::forward<Args>(args)...).
2) Equivalent to performing the following operations:
std::print(stream, "{}\n", std::format(fmt, std::forward<Args>(args)...)); |
(until C++26) |
std::print(stream, std::runtime_format( |