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

STL-compliant format argument holding a value for formatting.

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>>;

Description

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.

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

NameDescription
BoolType Alias for the unspecified boolean conversion type used by this class.
UnspecifiedBoolType Alias for bsls::UnspecifiedBool specialized on this class.

Member Functions

NameDescription
basic_format_arg [constructor]Create a basic_format_arg which holds a bsl::monostate.
visit Invoke visitor on the value contained by this object.
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_ArgUtilComponent-private utilities for constructing format-argument arrays.