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

#include <core.h>

Public Member Functions

template<typename... T>
FMT_CONSTEXPR FMT_INLINE format_arg_store (T &... args)
 

Private Types

using value_type = conditional_t< is_packed, detail::value< Context >, basic_format_arg< Context > >
 

Private Attributes

detail::arg_data< value_type, typename Context::char_type, num_args, num_named_argsdata_
 

Static Private Attributes

static constexpr unsigned long long desc
 
static const bool is_packed = num_args <= detail::max_packed_args
 
static const size_t num_args = sizeof...(Args)
 
static constexpr size_t num_named_args = detail::count_named_args<Args...>()
 

Friends

class basic_format_args< Context >
 

Detailed Description

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

\rst 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. \endrst

Definition at line 1808 of file core.h.

Member Typedef Documentation

◆ value_type

template<typename Context , typename... Args>
using format_arg_store< Context, Args >::value_type = conditional_t<is_packed, detail::value<Context>, basic_format_arg<Context> >
private

Definition at line 1820 of file core.h.

Constructor & Destructor Documentation

◆ format_arg_store()

template<typename Context , typename... Args>
template<typename... T>
FMT_CONSTEXPR FMT_INLINE format_arg_store< Context, Args >::format_arg_store ( T &...  args)
inline

Definition at line 1837 of file core.h.

Friends And Related Function Documentation

◆ basic_format_args< Context >

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

Definition at line 1826 of file core.h.

Member Data Documentation

◆ data_

template<typename Context , typename... Args>
detail::arg_data<value_type, typename Context::char_type, num_args, num_named_args> format_arg_store< Context, Args >::data_
private

Definition at line 1824 of file core.h.

◆ desc

template<typename Context , typename... Args>
constexpr unsigned long long format_arg_store< Context, Args >::desc
staticconstexprprivate
Initial value:
=
(is_packed ? detail::encode_types<Context, Args...>()
? static_cast<unsigned long long>(detail::has_named_args_bit)
: 0)

Definition at line 1828 of file core.h.

◆ is_packed

template<typename Context , typename... Args>
const bool format_arg_store< Context, Args >::is_packed = num_args <= detail::max_packed_args
staticprivate

Definition at line 1817 of file core.h.

◆ num_args

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

Definition at line 1815 of file core.h.

◆ num_named_args

template<typename Context , typename... Args>
constexpr size_t format_arg_store< Context, Args >::num_named_args = detail::count_named_args<Args...>()
staticconstexprprivate

Definition at line 1816 of file core.h.


The documentation for this class was generated from the following file:
format_arg_store::num_named_args
static constexpr size_t num_named_args
Definition: core.h:1816
detail::has_named_args_bit
@ has_named_args_bit
Definition: core.h:1507
detail::encode_types
constexpr auto encode_types() -> unsigned long long
Definition: core.h:1566
detail::is_unpacked_bit
@ is_unpacked_bit
Definition: core.h:1506
format_arg_store::num_args
static const size_t num_args
Definition: core.h:1815
format_arg_store::is_packed
static const bool is_packed
Definition: core.h:1817


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Aug 11 2024 02:24:28