std::experimental::propagate_const<T>::swap

Swaps the wrapped pointer with that of pt. Let t_ designate the private data member that is the wrapped pointer-like object, then this function is equivalent to swap(t_, pt.t_), where the overload resolution for swap is performed among std::swap and any declaration found by the usual lookup rules, as described in Swappable.

# Declarations

constexpr void swap( propagate_const & pt ) noexcept(/* see below */);

(library fundamentals TS v2)

# Parameters

# Defect reports

DRApplied toBehavior as publishedCorrect behavior
LWG 3413LFTSv2the exception specification was ill-formedmade well-formed