Copy-assign to the active alternative of *d_variant_p from value.
Declared in <bslstl_variant.h>
template<
size_t t_INDEX,
class t_TYPE>
void
operator()(
bsl::in_place_index_t<t_INDEX> indexTag,
t_TYPE const& value) const;
Copy-assign to the active alternative of *d_variant_p from the specified value (i.e. the alternative that is being visited). The behavior is undefined unless (template parameter) t_INDEX is the index of the active alternative of *d_variant_p (or, in C++03, the index of an alternative that has the same type as the active alternative).
| Name | Description |
|---|---|
| indexTag | tag encoding the index of the alternative being visited |
| value | alternative value to copy-assign from |