fmt
Loading...
Searching...
No Matches
fmt::BasicFormatArg< Context > Class Template Referenceexport
module fmt

Classes

class  Handle

Public Types

using char_type = typename Context::char_type

Public Member Functions

 BasicFormatArg (const detail::NamedArgInfo< char_type > *args, size_t size)
template<typename T>
 BasicFormatArg (T &&val)
constexpr operator bool () const noexcept
auto type () const -> detail::Type
template<typename Visitor>
constexpr auto visit (Visitor &&vis) const -> decltype(vis(0))
auto formatCustom (const char_type *parse_begin, ParseContext< char_type > &parse_ctx, Context &ctx) -> bool

Friends

class BasicFormatArgs< Context >

Member Function Documentation

◆ visit()

template<typename Context>
template<typename Visitor>
auto fmt::BasicFormatArg< Context >::visit ( Visitor && vis) const -> decltype(vis(0))
inlineconstexpr

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.


The documentation for this class was generated from the following file:
  • /home/mccakit/desktop/mccakit-fmt/fmt/src/fmt/iface/base.cppm