|
Clementine
|
A view of a collection of formatting arguments. More...
#include <core.h>

Public Types | |
| using | size_type = int |
| using | format_arg = basic_format_arg< Context > |
Public Member Functions | |
| template<typename... Args> | |
| FMT_INLINE | basic_format_args (const format_arg_store< Context, Args... > &store) |
Constructs a basic_format_args object from ~fmtformat_arg_store. More... | |
| FMT_INLINE | basic_format_args (const dynamic_format_arg_store< Context > &store) |
Constructs a basic_format_args object from ~fmtdynamic_format_arg_store. More... | |
| basic_format_args (const format_arg *args, int count) | |
Constructs a basic_format_args object from a dynamic set of arguments. More... | |
| format_arg | get (int id) const |
| Returns the argument with the specified id. More... | |
| template<typename Char > | |
| format_arg | get (basic_string_view< Char > name) const |
| template<typename Char > | |
| int | get_id (basic_string_view< Char > name) const |
| int | max_size () const |
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(42); // Error: dangling reference
|
inline |
Constructs a basic_format_args object from ~fmtformat_arg_store.
|
inline |
Constructs a basic_format_args object from ~fmtdynamic_format_arg_store.
|
inline |
Constructs a basic_format_args object from a dynamic set of arguments.
|
inline |
Returns the argument with the specified id.
1.8.13