std::experimental::swap(std::experimental::propagate_const) (3) - Linux Manuals

std::experimental::swap(std::experimental::propagate_const): std::experimental::swap(std::experimental::propagate_const)

NAME

std::experimental::swap(std::experimental::propagate_const) - std::experimental::swap(std::experimental::propagate_const)

Synopsis


template< class T >
constexpr void swap( std::experimental::propagate_const<T>& lhs, (library fundamentals TS v2)
std::experimental::propagate_const<T>& rhs ) noexcept(/* see below */);


Specializes the swap algorithm for std::experimental::propagate_const. Swaps the pointers of lhs and rhs. Equivalent to lhs.swap(rhs).

Parameters


lhs, rhs - propagate_consts whose contents to swap

Return value


(none)

Exceptions


noexcept specification:
noexcept(noexcept(lhs.swap(rhs)))

Complexity


Constant

See also


     swaps the values of two objects
swap (function template)
     swaps the wrapped pointer
swap (public member function)