quill
Public Types | Public Member Functions | List of all members
context Class Reference

Public Types

enum  { builtin_types = FMTQUILL_BUILTIN_TYPES }
 
using char_type = char
 The character type for the output.
 
using iterator = appender
 
using format_arg = basic_format_arg< context >
 
using FMTQUILL_DEPRECATED = parse_context<>
 
using FMTQUILL_DEPRECATED = formatter< T >
 

Public Member Functions

FMTQUILL_CONSTEXPR context (iterator out, format_args args, detail::locale_ref loc={})
 Constructs a context object. More...
 
 context (context &&)=default
 
 context (const context &)=delete
 
void operator= (const context &)=delete
 
FMTQUILL_CONSTEXPR auto arg (int id) const -> format_arg
 
auto arg (string_view name) const -> format_arg
 
FMTQUILL_CONSTEXPR auto arg_id (string_view name) const -> int
 
auto args () const -> const format_args &
 
FMTQUILL_CONSTEXPR auto out () const -> iterator
 
FMTQUILL_CONSTEXPR void advance_to (iterator)
 
FMTQUILL_CONSTEXPR auto locale () const -> detail::locale_ref
 

Constructor & Destructor Documentation

◆ context()

FMTQUILL_CONSTEXPR context::context ( iterator  out,
format_args  args,
detail::locale_ref  loc = {} 
)
inline

Constructs a context object.

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


The documentation for this class was generated from the following file: