BloombergLP::bslfmt::basic_format_arg<basic_format_context<t_OUT, t_CHAR>>

This class provides an STL-compliant basic_format_arg which holds (by value for scalar and pointer types, by reference for user-defined types). These types should not be constructed directly by the user.

Synopsis

Declared in <bslfmt_format_arg.h>

template<
    class t_OUT,
    class t_CHAR>
class basic_format_arg<basic_format_context<t_OUT, t_CHAR>>;

Types

NameDescription
handle This class provides a type-erased wrapper which holds a pointer to a user-defined type and permits its formatting using the appropriate bsl::formatter type.

Type Aliases

Name
BoolType
UnspecifiedBoolType

Member Functions

NameDescription
basic_format_arg [constructor]Create a basic_format_arg which holds a bsl::monostate.
visit Invoke the specified visitor functor on the value contained by this object, providing that functor non-modifiable access to that value. visitor must be a variant-style functor that is able to visit all supported types listed in the {DESCRIPTION}.
operator BoolType Return whether this object holds a value.

Friends

NameDescription
BloombergLP::bslfmt::swapExchange the values of the specified lhs and rhs.
BloombergLP::bslfmt::Format_ArgUtilThis class provides utility functions to enable manipulation of types declared by this component. It is solely for private use by other components of the bslfmt package and should not be used directly.