quill
Public Member Functions | List of all members
DynamicFormatArgStore Class Reference

Similar to fmt::dynamic_arg_store but better suited to our needs e.g does not include <functional> and requires less space. More...

#include <DynamicFormatArgStore.h>

Public Member Functions

QUILL_NODISCARD int size () const
 
QUILL_NODISCARD fmtquill::basic_format_arg< fmtquill::format_context > const * data () const
 
template<typename T >
void push_back (T const &arg)
 Adds an argument for later passing to a formatting function. More...
 
void clear ()
 Erase all elements from the store.
 
QUILL_NODISCARD bool has_string_related_type () const noexcept
 

Detailed Description

Similar to fmt::dynamic_arg_store but better suited to our needs e.g does not include <functional> and requires less space.

Member Function Documentation

◆ push_back()

template<typename T >
void DynamicFormatArgStore::push_back ( T const &  arg)
inline

Adds an argument for later passing to a formatting function.

Example**::

fmtquill::dynamic_format_arg_store<fmtquill::format_fmtquill::format_context> store; store.push_back(42); store.push_back("abc"); store.push_back(1.5f); std::string result = fmtquill::vformat("{} and {} and {}", store);


The documentation for this class was generated from the following file: