MOS Source Code
Loading...
Searching...
No Matches
FormatImpl::Formatter< __spec > Struct Template Reference

Public Member Functions

template<typename TArg, typename Stream>
Stream & Print (Stream &os, const decltype(arg_tuple< TArg >()) &args)
 

Static Public Member Functions

template<typename TArg, Specifier _config = spec, std::enable_if_t< _config.n_dynamic_args()==1, int > = 0>
static constexpr auto arg_tuple () -> std::tuple< TArg >
 
template<typename TArg, Specifier _config = spec, std::enable_if_t< _config.n_dynamic_args()==2, int > = 0>
static constexpr auto arg_tuple () -> std::tuple< TArg, size_t >
 
template<typename TArg, Specifier _config = spec, std::enable_if_t< _config.n_dynamic_args()==3, int > = 0>
static constexpr auto arg_tuple () -> std::tuple< TArg, size_t, size_t >
 

Static Public Attributes

static constexpr auto spec = __spec
 

Detailed Description

template<Specifier __spec>
struct mos::FormatImpl::Formatter< __spec >

Definition at line 70 of file formatter.hpp.

Member Function Documentation

◆ arg_tuple() [1/3]

template<Specifier __spec>
template<typename TArg, Specifier _config = spec, std::enable_if_t< _config.n_dynamic_args()==1, int > = 0>
static constexpr auto arg_tuple ( ) -> std::tuple< TArg >
staticconstexpr

Referenced by Print().

◆ arg_tuple() [2/3]

template<Specifier __spec>
template<typename TArg, Specifier _config = spec, std::enable_if_t< _config.n_dynamic_args()==2, int > = 0>
static constexpr auto arg_tuple ( ) -> std::tuple< TArg, size_t >
staticconstexpr

◆ arg_tuple() [3/3]

template<Specifier __spec>
template<typename TArg, Specifier _config = spec, std::enable_if_t< _config.n_dynamic_args()==3, int > = 0>
static constexpr auto arg_tuple ( ) -> std::tuple< TArg, size_t, size_t >
staticconstexpr

◆ Print()

template<Specifier __spec>
template<typename TArg, typename Stream>
Stream & Print ( Stream & os,
const decltype(arg_tuple< TArg >()) & args )
inline

Definition at line 84 of file formatter.hpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ spec

template<Specifier __spec>
auto spec = __spec
staticconstexpr

Definition at line 72 of file formatter.hpp.

Referenced by arg_tuple(), arg_tuple(), and Print().


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