quill
Classes | Public Member Functions | Friends | List of all members
basic_format_arg< Context > Class Template Reference

Classes

class  handle
 

Public Member Functions

 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 >
FMTQUILL_CONSTEXPR FMTQUILL_INLINE auto visit (Visitor &&vis) const -> decltype(vis(0))
 Visits an argument dispatching to the appropriate visit method based on the argument type. More...
 
auto format_custom (const char_type *parse_begin, parse_context< char_type > &parse_ctx, Context &ctx) -> bool
 

Friends

class basic_format_args< Context >
 

Member Function Documentation

◆ visit()

template<typename Context>
template<typename Visitor >
FMTQUILL_CONSTEXPR FMTQUILL_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.


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