WPILibC++ 2025.3.1
Loading...
Searching...
No Matches
basic_format_arg< Context > Class Template Reference

#include <fmt/base.h>

Classes

class  handle
 

Public Member Functions

constexpr basic_format_arg ()
 
 basic_format_arg (const detail::named_arg_info< char_type > *args, size_t size)
 
template<typename T >
 basic_format_arg (T &&val)
 
constexpr operator bool () const noexcept
 
auto type () const -> detail::type
 
template<typename Visitor >
FMT_CONSTEXPR FMT_INLINE auto visit (Visitor &&vis) const -> decltype(vis(0))
 Visits an argument dispatching to the appropriate visit method based on the argument type.
 
auto format_custom (const char_type *parse_begin, parse_context< char_type > &parse_ctx, Context &ctx) -> bool
 

Friends

class basic_format_args< Context >
 

Constructor & Destructor Documentation

◆ basic_format_arg() [1/3]

template<typename Context >
basic_format_arg< Context >::basic_format_arg ( )
inlineconstexpr

◆ basic_format_arg() [2/3]

template<typename Context >
basic_format_arg< Context >::basic_format_arg ( const detail::named_arg_info< char_type > * args,
size_t size )
inline

◆ basic_format_arg() [3/3]

template<typename Context >
template<typename T >
basic_format_arg< Context >::basic_format_arg ( T && val)
inline

Member Function Documentation

◆ format_custom()

template<typename Context >
auto basic_format_arg< Context >::format_custom ( const char_type * parse_begin,
parse_context< char_type > & parse_ctx,
Context & ctx ) -> bool
inline

◆ operator bool()

template<typename Context >
basic_format_arg< Context >::operator bool ( ) const
inlineexplicitconstexprnoexcept

◆ type()

template<typename Context >
auto basic_format_arg< Context >::type ( ) const -> detail::type
inline

◆ visit()

template<typename Context >
template<typename Visitor >
FMT_CONSTEXPR FMT_INLINE auto basic_format_arg< Context >::visit ( Visitor && vis) const -> decltype(vis(0))
inline

Visits an argument dispatching to the appropriate visit method based on the argument type.

For example, if the argument type is double then vis(value) will be called with the value of type double.

Friends And Related Symbol Documentation

◆ basic_format_args< Context >

template<typename Context >
friend class basic_format_args< Context >
friend

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