Go to the source code of this file.
Classes | |
class | basic_printf_parse_context< Char > |
class | basic_printf_context< OutputIt, Char > |
class | formatbuf< Char > |
struct | converter |
struct | test_stream< Char > |
class | is_streamable< T, Char > |
struct | fallback_formatter< T, Char, enable_if_t< is_streamable< T, Char >::value > > |
Namespaces | |
detail | |
Functions | |
template<typename Char , typename Traits > | |
void_t | operator<< (std::basic_ostream< Char, Traits > &, Char) |
template<typename Char , typename Traits > | |
void_t | operator<< (std::basic_ostream< Char, Traits > &, char) |
template<typename Traits > | |
void_t | operator<< (std::basic_ostream< char, Traits > &, char) |
template<typename Traits > | |
void_t | operator<< (std::basic_ostream< char, Traits > &, signed char) |
template<typename Traits > | |
void_t | operator<< (std::basic_ostream< char, Traits > &, unsigned char) |
template<typename Char > | |
void | write_buffer (std::basic_ostream< Char > &os, buffer< Char > &buf) |
template<typename Char , typename T > | |
void | format_value (buffer< Char > &buf, const T &value, locale_ref loc=locale_ref()) |
template<typename Char > | |
void | vprint (std::basic_ostream< Char > &os, basic_string_view< Char > format_str, basic_format_args< buffer_context< type_identity_t< Char >>> args) |
template<typename S , typename... Args, typename Char = enable_if_t<detail::is_string<S>::value, char_t<S>>> | |
void | print (std::basic_ostream< Char > &os, const S &format_str, Args &&... args) |
void print | ( | std::basic_ostream< Char > & | os, |
const S & | format_str, | ||
Args &&... | args | ||
) |
Prints formatted data to the stream os.
Example**::
fmt::print(cerr, "Don't {}!", "panic");
Definition at line 171 of file ostream.h.
References FMT_END_NAMESPACE, detail::to_string_view(), and vprint().
void vprint | ( | std::basic_ostream< Char > & | os, |
basic_string_view< Char > | format_str, | ||
basic_format_args< buffer_context< type_identity_t< Char >>> | args | ||
) |
Definition at line 153 of file ostream.h.
References detail::vformat_to(), and detail::write_buffer().
Referenced by print().