std::experimental::propagate_const::swap - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::experimental::propagate_const::swap

From cppreference.com
< cpp‎ | experimental‎ | propagate const

constexpr void swap(propagate_const & pt); |  | (library fundamentals TS v2)

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_).

### [edit] Parameters

pt | - | another `propagate_const` object to swap with

### [edit] Exceptions

`noexcept` specification:
noexcept(noexcept(swap(t_, pt.t_)))
Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/experimental/propagate_const/swap&oldid=91433"
Category:

- conditionally noexcept

Hidden categories:

- Pages with unreviewed conditional noexcept template
- Pages with unreviewed noexcept template