std::basic_format_arg<Context>::handle

Header: <format>

A type-erased wrapper that allows formatting an object of a user-defined type.

# Declarations

template< class Context >
class basic_format_arg<Context>::handle;

(since C++20)

# Notes

A handle has reference semantics for the formatted argument and does not extend its lifetime. It is the programmer’s responsibility to ensure that the argument outlives the handle. Usually, a handle is only used within formatting functions.

# See also