|
FlatImage
A configurable Linux containerization system
|
Helper struct for converting arguments to format-compatible strings. More...
#include <common.hpp>
Public Member Functions | |
| format_args (Args &&... args) | |
| Constructs format_args by converting all arguments to strings. | |
| auto | operator* () |
| Dereference operator to get format arguments. | |
Public Attributes | |
| std::tuple< decltype(ns_string::to_string(std::declval< Args >()))... > | m_tuple_args |
| Tuple storing string representations of all arguments. | |
Helper struct for converting arguments to format-compatible strings.
This template struct converts all provided arguments to their string representations using ns_string::to_string() and stores them in a tuple. The converted strings can then be used with std::format functions.
| Args | Variadic template parameters for the types to be converted |
Definition at line 34 of file common.hpp.
|
inline |
Constructs format_args by converting all arguments to strings.
| args | Arguments to be converted to string representations |
Definition at line 50 of file common.hpp.
|
inline |
Dereference operator to get format arguments.
Applies std::make_format_args to the stored string tuple elements
Definition at line 61 of file common.hpp.
| std::tuple<decltype(ns_string::to_string(std::declval<Args>()))...> anonymous_namespace{common.hpp}::format_args< Args >::m_tuple_args |
Tuple storing string representations of all arguments.
Each element type is determined by the return type of ns_string::to_string() when called with the corresponding argument type
Definition at line 42 of file common.hpp.