...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
template<
class Formattable
>
formattable_ref(
Formattable&& value) noexcept;
Constructs a type-erased formattable reference from a concrete Formattable
type.
This constructor participates in overload resolution only if the passed
value meets the Formattable
concept and is not a formattable_ref
or a reference to one.
No-throw guarantee.
value is potentially stored as a view, although some cheap-to-copy types may be stored as values.