std::swap(std::variant)
From cppreference.com
Defined in header
<variant>
|
||
template <class... Types>
void swap(variant<Types...>& lhs, variant<Types...>& rhs) |
(since C++17) | |
Overloads the std::swap algorithm for std::variant. Effectively calls lhs.swap(rhs).
Contents |
[edit] Parameters
lhs, rhs | - | variant objects whose values to swap
|
[edit] Return value
(none)
[edit] Exceptions
noexcept specification:
noexcept(lhs.swap(rhs))
[edit] Example
This section is incomplete Reason: no example |
[edit] See also
swaps with another variant (public member function) |