template< class Context >
class basic_format_arg;
Provides access to a formatting argument.
basic_format_arg
objects are typically created by std::make_format_args and accessed through std::visit_format_arg or the visit
member functions(since C++26).
A basic_format_arg
object behaves as if it contains a std::variant of the following types:
std::basic_format_arg
(C++20) (deprecated in C++26)
argument visitation interface for user-defined formattersbasic_format_arg() noexcept;
(since C++20)Default constructor. Constructs a basic_format_arg
that does not hold a formatting argument. The contained object has type std::monostate.
To create a basic_format_arg
that holds a formatting argument, std::make_format_args has to be used.
explicit operator bool() const noexcept;
(since C++20)Checks whether *this holds a formatting argument.
Returns true if *this holds a formatting argument (i.e. the contained object does not have type std::monostate), false otherwise.
std::basic_format_arg::visittemplate< class Visitor >
decltype(auto) visit( this basic_format_arg arg, Visitor&& vis );
template< class R, class Visitor >
R visit( this basic_format_arg arg, Visitor&& vis );
Applies the visitor vis to the object contained in arg.
The visit
functions do not modify the basic_format_arg
object on which it is called because a copy of the object is used when calling vis.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4