WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
context Class Reference

#include <fmt/base.h>

Inheritance diagram for context:
detail::locale_ref

Public Types

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

Public Member Functions

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

Member Typedef Documentation

◆ char_type

using context::char_type = char

The character type for the output.

◆ FMT_DEPRECATED [1/2]

◆ FMT_DEPRECATED [2/2]

◆ format_arg

◆ iterator

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
builtin_types 

Constructor & Destructor Documentation

◆ context() [1/3]

FMT_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.

◆ context() [2/3]

context::context ( context && )
default

◆ context() [3/3]

context::context ( const context & )
delete

Member Function Documentation

◆ advance_to()

FMT_CONSTEXPR void context::advance_to ( iterator )
inline

◆ arg() [1/2]

FMT_CONSTEXPR auto context::arg ( int id) const -> format_arg
inline

◆ arg() [2/2]

auto context::arg ( string_view name) const -> format_arg
inline

◆ arg_id()

FMT_CONSTEXPR auto context::arg_id ( string_view name) const -> int
inline

◆ locale()

FMT_CONSTEXPR auto context::locale ( ) const -> detail::locale_ref
inline

◆ operator=()

void context::operator= ( const context & )
delete

◆ out()

FMT_CONSTEXPR auto context::out ( ) const -> iterator
inline

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