SoPlex Documentation
Loading...
Searching...
No Matches
ostream.h File Reference
#include <ostream>
#include "format.h"

Go to the source code of this file.

Classes

class  formatbuf< Char >
 
struct  test_stream< Char >
 
class  is_streamable< T, Char >
 
struct  fallback_formatter< T, Char, enable_if_t< is_streamable< T, Char >::value > >
 

Namespaces

namespace  internal
 

Functions

template<typename Char >
void write (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< Char > > args)
 
template<typename S , typename... Args, typename Char = enable_if_t<internal::is_string<S>::value, char_t<S>>>
void print (std::basic_ostream< Char > &os, const S &format_str, Args &&... args)
 

Function Documentation

◆ print()

template<typename S , typename... Args, typename Char = enable_if_t<internal::is_string<S>::value, char_t<S>>>
void print ( std::basic_ostream< Char > & os,
const S & format_str,
Args &&... args )

\rst Prints formatted data to the stream os.

Example**::

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

Definition at line 135 of file ostream.h.

References internal::make_args_checked(), to_string_view(), and vprint().

◆ vprint()

template<typename Char >
void vprint ( std::basic_ostream< Char > & os,
basic_string_view< Char > format_str,
basic_format_args< buffer_context< Char > > args )

Definition at line 117 of file ostream.h.

References internal::vformat_to(), and internal::write().

Referenced by print().