#include <core.h>
Public Types | |
using | format_arg = basic_format_arg< Context > |
using | size_type = int |
Public Member Functions | |
constexpr | basic_format_args () |
constexpr FMT_INLINE | basic_format_args (const dynamic_format_arg_store< Context > &store) |
constexpr | basic_format_args (const format_arg *args, int count) |
template<typename... Args> | |
constexpr FMT_INLINE | basic_format_args (const format_arg_store< Context, Args... > &store) |
template<typename Char > | |
auto | get (basic_string_view< Char > name) const -> format_arg |
FMT_CONSTEXPR auto | get (int id) const -> format_arg |
template<typename Char > | |
auto | get_id (basic_string_view< Char > name) const -> int |
auto | max_size () const -> int |
Private Member Functions | |
constexpr FMT_INLINE | basic_format_args (unsigned long long desc, const detail::value< Context > *values) |
constexpr | basic_format_args (unsigned long long desc, const format_arg *args) |
auto | has_named_args () const -> bool |
constexpr auto | is_packed () const -> bool |
FMT_CONSTEXPR auto | type (int index) const -> detail::type |
Private Attributes | |
union { | |
const format_arg * args_ | |
const detail::value< Context > * values_ | |
}; | |
unsigned long long | desc_ |
\rst A view of a collection of formatting arguments. To avoid lifetime issues it should only be used as a parameter type in type-erased functions such as vformat
::
void vlog(string_view format_str, format_args args); // OK format_args args = make_format_args(); // Error: dangling reference \endrst
using basic_format_args< Context >::format_arg = basic_format_arg<Context> |
using basic_format_args< Context >::size_type = int |
|
inlineconstexprprivate |
|
inlineconstexprprivate |
|
inlineconstexpr |
|
inlineconstexpr |
\rst Constructs a basic_format_args
object from ~fmtformat_arg_store
. \endrst
|
inlineconstexpr |
\rst Constructs a basic_format_args
object from ~fmtdynamic_format_arg_store
. \endrst
|
inlineconstexpr |
\rst Constructs a basic_format_args
object from a dynamic set of arguments. \endrst
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
inlineconstexprprivate |
|
inline |
|
inlineprivate |
union { ... } |
const format_arg* basic_format_args< Context >::args_ |
|
private |
const detail::value<Context>* basic_format_args< Context >::values_ |