Create a variant object holding the 0th alternative, which is value‐initialized. If this variant is allocator‐aware, the currently installed default allocator is used to supply memory. This constructor participates in overload resolution only if the 0th alternative is default constructible. For simplicity of implementation, this method differs from the standard in the following ways: * constexpr is not implemented * noexcept specification is not implemented

Synopsis

Declared in <bslstl_variant.h>

template<class t_FIRST_ALT = t_HEAD>
requires std::is_default_constructible<t_FIRST_ALT>::value
variant();

Created with MrDocs