Create a variant object holding a value‐initialized 0th alternative.
Synopsis
Declared in <bslstl_variant.h>
template<class t_FIRST_ALT = t_HEAD>
requires std::is_default_constructible<t_FIRST_ALT>::value
variant();
Description
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
Created with MrDocs