#include <fstream>
#include <ostream>
#include "format.h"
Go to the source code of this file.
|
class | detail::is_streamable< T, Char, Enable > |
|
struct | detail::is_streamable< T, Char, enable_if_t< std::is_arithmetic< T >::value||std::is_array< T >::value||std::is_pointer< T >::value||std::is_same< T, char8_type >::value||std::is_convertible< T, fmt::basic_string_view< Char > >::value||std::is_same< T, std_string_view< Char > >::value||(std::is_convertible< T, int >::value &&!std::is_enum< T >::value)> > |
|
class | detail::file_access< Tag, BufType, FileMemberPtr > |
|
struct | detail::streamed_view< T > |
|
struct | basic_ostream_formatter< Char > |
|
struct | formatter< detail::streamed_view< T >, Char > |
|
struct | detail::fallback_formatter< T, Char, enable_if_t< is_streamable< T, Char >::value > > |
|
|
bool | detail::write_ostream_unicode (std::ostream &os, fmt::string_view data) |
|
bool | detail::write_ostream_unicode (std::wostream &, fmt::basic_string_view< wchar_t >) |
|
template<typename Char > |
void | detail::write_buffer (std::basic_ostream< Char > &os, buffer< Char > &buf) |
|
template<typename Char , typename T > |
void | detail::format_value (buffer< Char > &buf, const T &value, locale_ref loc=locale_ref()) |
|
template<typename T > |
auto | streamed (const T &value) -> detail::streamed_view< T > |
| \rst Returns a view that formats value via an ostream operator<< . More...
|
|
void | detail::vprint_directly (std::ostream &os, string_view format_str, format_args args) |
|
template<typename Char > |
FMT_MODULE_EXPORT void | vprint (std::basic_ostream< Char > &os, basic_string_view< type_identity_t< Char > > format_str, basic_format_args< buffer_context< type_identity_t< Char > > > args) |
|
template<typename... T> |
FMT_MODULE_EXPORT void | print (std::ostream &os, format_string< T... > fmt, T &&... args) |
| \rst Prints formatted data to the stream os. More...
|
|
template<typename... Args> |
FMT_MODULE_EXPORT void | print (std::wostream &os, basic_format_string< wchar_t, type_identity_t< Args >... > fmt, Args &&... args) |
|
◆ ostream_formatter
◆ print() [1/2]
\rst Prints formatted data to the stream os.
Example**::
fmt::print(cerr, "Don't {}!", "panic"); \endrst
◆ print() [2/2]
template<typename... Args>
◆ streamed()
\rst Returns a view that formats value
via an ostream operator<<
.
Example**::
fmt::print("Current thread id: {}\n", fmt::streamed(std::this_thread::get_id())); \endrst
◆ vprint()