Assignment operators
Declared in <bslstl_variant.h>
Assign to this object a copy of rhs's alternative.
variant&
operator=(variant const& rhs) = default;
» more...
Assign to this object a moved copy of rhs's alternative.
variant&
operator=(variant&& rhs) = default;
» more...
Assign to this object the specified value.
template<class t_TYPE>
variant&
operator=(t_TYPE&& value)
requires BloombergLP::bslstl::Variant_AssignsFromType<variant, t_TYPE>::value;
» more...
reference to this object
| Name | Description |
|---|---|
| rhs | variant to copy from |
| value | value to assign to the selected alternative |