Classes | Namespaces | Typedefs | Functions
ostream.h File Reference
#include <fstream>
#include "format.h"
Include dependency graph for ostream.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  basic_ostream_formatter< Char >
 
class  detail::file_access< Tag, BufType, FileMemberPtr >
 
class  detail::formatbuf< Streambuf >
 
struct  formatter< detail::streamed_view< T >, Char >
 
struct  detail::streamed_view< T >
 

Namespaces

 detail
 

Typedefs

using ostream_formatter = basic_ostream_formatter< char >
 

Functions

template<typename Char , typename T >
void detail::format_value (buffer< Char > &buf, const T &value)
 
template<typename... T>
FMT_EXPORT void print (std::ostream &os, format_string< T... > fmt, T &&... args)
 
template<typename... Args>
FMT_EXPORT void print (std::wostream &os, basic_format_string< wchar_t, type_identity_t< Args >... > fmt, Args &&... args)
 
template<typename... T>
FMT_EXPORT void println (std::ostream &os, format_string< T... > fmt, T &&... args)
 
template<typename... Args>
FMT_EXPORT void println (std::wostream &os, basic_format_string< wchar_t, type_identity_t< Args >... > fmt, Args &&... args)
 
template<typename T >
constexpr auto streamed (const T &value) -> detail::streamed_view< T >
 
template<typename Char >
FMT_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)
 
void detail::vprint_directly (std::ostream &os, string_view format_str, format_args args)
 
template<typename Char >
void detail::write_buffer (std::basic_ostream< Char > &os, buffer< Char > &buf)
 
auto detail::write_ostream_unicode (std::ostream &os, fmt::string_view data) -> bool
 
auto detail::write_ostream_unicode (std::wostream &, fmt::basic_string_view< wchar_t >) -> bool
 

Typedef Documentation

◆ ostream_formatter

Definition at line 156 of file ostream.h.

Function Documentation

◆ print() [1/2]

template<typename... T>
FMT_EXPORT void print ( std::ostream &  os,
format_string< T... >  fmt,
T &&...  args 
)

\rst Prints formatted data to the stream os.

Example**::

fmt::print(cerr, "Don't {}!", "panic"); \endrst

Definition at line 214 of file ostream.h.

◆ print() [2/2]

template<typename... Args>
FMT_EXPORT void print ( std::wostream &  os,
basic_format_string< wchar_t, type_identity_t< Args >... >  fmt,
Args &&...  args 
)

Definition at line 224 of file ostream.h.

◆ println() [1/2]

template<typename... T>
FMT_EXPORT void println ( std::ostream &  os,
format_string< T... >  fmt,
T &&...  args 
)

Definition at line 231 of file ostream.h.

◆ println() [2/2]

template<typename... Args>
FMT_EXPORT void println ( std::wostream &  os,
basic_format_string< wchar_t, type_identity_t< Args >... >  fmt,
Args &&...  args 
)

Definition at line 237 of file ostream.h.

◆ streamed()

template<typename T >
constexpr auto streamed ( const T &  value) -> detail::streamed_view<T>
constexpr

\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

Definition at line 179 of file ostream.h.

◆ vprint()

template<typename Char >
FMT_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 
)

Definition at line 195 of file ostream.h.



plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:49