Rosetta
|
#include <core.h>
Public Types | |
using | size_type = int |
using | format_arg = basic_format_arg< Context > |
Public Member Functions | |
basic_format_args () | |
template<typename... Args> | |
FMT_INLINE | basic_format_args (const format_arg_store< Context, Args... > &store) |
FMT_INLINE | basic_format_args (const dynamic_format_arg_store< Context > &store) |
basic_format_args (const format_arg *args, int count) | |
format_arg | get (int id) const |
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 |
Private Member Functions | |
bool | is_packed () const |
bool | has_named_args () const |
detail::type | type (int index) const |
basic_format_args (unsigned long long desc, const detail::value< Context > *values) | |
basic_format_args (unsigned long long desc, const format_arg *args) | |
Private Attributes | |
unsigned long long | desc_ |
union { | |
const detail::value< Context > * values_ | |
const format_arg * args_ | |
}; | |
\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(42); // Error: dangling reference \endrst
using basic_format_args< Context >::format_arg = basic_format_arg<Context> |
using basic_format_args< Context >::size_type = int |
|
inlineprivate |
|
inlineprivate |
|
inline |
|
inline |
\rst Constructs a basic_format_args
object from ~fmtformat_arg_store
. \endrst
|
inline |
\rst Constructs a basic_format_args
object from ~fmtdynamic_format_arg_store
. \endrst
|
inline |
\rst Constructs a basic_format_args
object from a dynamic set of arguments. \endrst
|
inline |
References basic_format_args< Context >::get(), basic_format_args< Context >::get_id(), and name.
|
inline |
Returns the argument with the specified id.
References arg(), basic_format_args< Context >::args_, basic_format_args< Context >::is_packed(), detail::max_packed_args, basic_format_args< Context >::max_size(), detail::none_type, basic_format_args< Context >::type(), and basic_format_args< Context >::values_.
Referenced by basic_format_context< OutputIt, Char >::arg(), basic_printf_context< OutputIt, Char >::arg(), and basic_format_args< Context >::get().
|
inline |
References basic_format_args< Context >::args_, basic_format_args< Context >::has_named_args(), create_a3b_hbs::i, basic_format_args< Context >::is_packed(), name, and basic_format_args< Context >::values_.
Referenced by basic_format_context< OutputIt, Char >::arg_id(), and basic_format_args< Context >::get().
|
inlineprivate |
References basic_format_args< Context >::desc_, and detail::has_named_args_bit.
Referenced by basic_format_args< Context >::get_id().
|
inlineprivate |
|
inline |
|
inlineprivate |
References basic_format_args< Context >::desc_, ObjexxFCL::index(), detail::packed_arg_bits, and shift.
Referenced by schema.Move::__repr__(), schema.NumpyCache::__repr__(), and basic_format_args< Context >::get().
union { ... } |
const format_arg* basic_format_args< Context >::args_ |
Referenced by basic_format_args< Context >::get(), and basic_format_args< Context >::get_id().
|
private |
const detail::value<Context>* basic_format_args< Context >::values_ |
Referenced by basic_format_args< Context >::get(), and basic_format_args< Context >::get_id().