VIPRA Documentation
|
#include <base.h>
Public Types | |
using | size_type = int |
using | format_arg = basic_format_arg<Context> |
Public Member Functions | |
template<size_t NUM_ARGS, size_t NUM_NAMED_ARGS, unsigned long long DESC, FMT_ENABLE_IF(NUM_ARGS<=detail::max_packed_args)> | |
constexpr FMT_ALWAYS_INLINE | basic_format_args (const detail::format_arg_store< Context, NUM_ARGS, NUM_NAMED_ARGS, DESC > &store) |
Constructs a basic_format_args object from format_arg_store . | |
template<size_t NUM_ARGS, size_t NUM_NAMED_ARGS, unsigned long long DESC, FMT_ENABLE_IF(NUM_ARGS > detail::max_packed_args)> | |
constexpr | basic_format_args (const detail::format_arg_store< Context, NUM_ARGS, NUM_NAMED_ARGS, DESC > &store) |
constexpr | basic_format_args (const dynamic_format_arg_store< Context > &store) |
Constructs a basic_format_args object from dynamic_format_arg_store . | |
constexpr | basic_format_args (const format_arg *args, int count) |
Constructs a basic_format_args object from a dynamic list of arguments. | |
FMT_CONSTEXPR auto | get (int id) const -> format_arg |
Returns the argument with the specified id. | |
template<typename Char> | |
auto | get (basic_string_view< Char > name) const -> format_arg |
template<typename Char> | |
FMT_CONSTEXPR auto | get_id (basic_string_view< Char > name) const -> int |
auto | max_size () const -> int |
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(fmt::string_view fmt, fmt::format_args args); // OK fmt::format_args args = fmt::make_format_args(); // Dangling reference