SimulationCraft
SimulationCraft is a tool to explore combat mechanics in the popular MMO RPG World of Warcraft (tm).
basic_format_context< OutputIt, Char > Class Template Reference

Public Types

using char_type = Char
 The character type for the output. More...
 
using iterator = OutputIt
 
using format_arg = basic_format_arg< basic_format_context >
 
using parse_context_type = basic_format_parse_context< Char >
 
template<typename T >
using formatter_type = formatter< T, char_type >
 

Public Member Functions

 basic_format_context (basic_format_context &&)=default
 
 basic_format_context (const basic_format_context &)=delete
 
void operator= (const basic_format_context &)=delete
 
constexpr basic_format_context (OutputIt out, basic_format_args< basic_format_context > ctx_args, detail::locale_ref loc=detail::locale_ref())
 Constructs a basic_format_context object. More...
 
constexpr auto arg (int id) const -> format_arg
 
FMT_CONSTEXPR auto arg (basic_string_view< char_type > name) -> format_arg
 
FMT_CONSTEXPR auto arg_id (basic_string_view< char_type > name) -> int
 
auto args () const -> const basic_format_args< basic_format_context > &
 
FMT_CONSTEXPR auto error_handler () -> detail::error_handler
 
void on_error (const char *message)
 
FMT_CONSTEXPR auto out () -> iterator
 
void advance_to (iterator it)
 
FMT_CONSTEXPR auto locale () -> detail::locale_ref
 

Member Typedef Documentation

◆ char_type

template<typename OutputIt, typename Char>
using basic_format_context< OutputIt, Char >::char_type = Char

The character type for the output.

Constructor & Destructor Documentation

◆ basic_format_context()

template<typename OutputIt, typename Char>
constexpr basic_format_context< OutputIt, Char >::basic_format_context ( OutputIt  out,
basic_format_args< basic_format_context< OutputIt, Char > >  ctx_args,
detail::locale_ref  loc = detail::locale_ref() 
)
inline

Constructs a basic_format_context object.

References to the arguments are stored in the object so make sure they have appropriate lifetimes.