Public Member Functions | Static Public Attributes | Private Types | Static Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
format_arg_store< Context, Args > Class Template Reference

#include <core.h>

Public Member Functions

 format_arg_store (const Args &...args)
 

Static Public Attributes

static const unsigned long long TYPES
 

Private Types

typedef std::conditional< IS_PACKED, internal::value< Context >, basic_format_arg< Context > >::type value_type
 

Static Private Member Functions

static FMT_CONSTEXPR11 unsigned long long get_types ()
 

Private Attributes

value_type data_ [DATA_SIZE]
 

Static Private Attributes

static const size_t NUM_ARGS = sizeof...(Args)
 
static const bool IS_PACKED = NUM_ARGS < internal::max_packed_args
 
static const size_t DATA_SIZE
 

Friends

class basic_format_args< Context >
 

Detailed Description

template<typename Context, typename... Args>
class format_arg_store< Context, Args >

An array of references to arguments. It can be implicitly converted into ~fmtbasic_format_args for passing into type-erased formatting functions such as ~fmtvformat.

Definition at line 1140 of file core.h.

Member Typedef Documentation

template<typename Context, typename... Args>
typedef std::conditional<IS_PACKED, internal::value<Context>, basic_format_arg<Context> >::type format_arg_store< Context, Args >::value_type
private

Definition at line 1148 of file core.h.

Constructor & Destructor Documentation

template<typename Context, typename... Args>
format_arg_store< Context, Args >::format_arg_store ( const Args &...  args)
inline

Definition at line 1179 of file core.h.

1180  : data_{internal::make_arg<IS_PACKED, Context>(args)...} {}
value_type data_[DATA_SIZE]
Definition: core.h:1153
const Args & args
Definition: core.h:1496

Member Function Documentation

template<typename Context, typename... Args>
static FMT_CONSTEXPR11 unsigned long long format_arg_store< Context, Args >::get_types ( )
inlinestaticprivate

Definition at line 1157 of file core.h.

1157  {
1158  return IS_PACKED ?
1159  internal::get_types<Context, Args...>() :
1161  }
static const size_t NUM_ARGS
Definition: core.h:1142
static const bool IS_PACKED
Definition: core.h:1145
FMT_CONSTEXPR11 unsigned long long get_types()
Definition: core.h:1051

Friends And Related Function Documentation

template<typename Context, typename... Args>
friend class basic_format_args< Context >
friend

Definition at line 1155 of file core.h.

Member Data Documentation

template<typename Context, typename... Args>
value_type format_arg_store< Context, Args >::data_[DATA_SIZE]
private

Definition at line 1153 of file core.h.

template<typename Context, typename... Args>
const size_t format_arg_store< Context, Args >::DATA_SIZE
staticprivate
Initial value:
=
NUM_ARGS + (IS_PACKED && NUM_ARGS != 0 ? 0 : 1)

Definition at line 1151 of file core.h.

template<typename Context, typename... Args>
const bool format_arg_store< Context, Args >::IS_PACKED = NUM_ARGS < internal::max_packed_args
staticprivate

Definition at line 1145 of file core.h.

template<typename Context, typename... Args>
const size_t format_arg_store< Context, Args >::NUM_ARGS = sizeof...(Args)
staticprivate

Definition at line 1142 of file core.h.

template<typename Context, typename... Args>
const unsigned long long format_arg_store< Context, Args >::TYPES
static
Initial value:

Definition at line 1167 of file core.h.


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