GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
std::experimental::propagate_const::swap(3) C++ Standard Libary std::experimental::propagate_const::swap(3)

std::experimental::propagate_const::swap - std::experimental::propagate_const::swap


constexpr void swap(propagate_const & pt) noexcept(/* (library fundamentals TS v2)
see below */);


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.


The behavior is undefined if lvalues of T do not satisfy Swappable.


pt - another propagate_const object to swap with


noexcept specification:
noexcept(noexcept(swap(t_, pt.t_)))
The lookup for the identifier swap in the exception (library
specification finds overloads described above, and does not find fundamentals TS v2)
the member function itself, making the exception specification
equivalent to C++17 std::is_nothrow_swappable.
noexcept specification: (library
noexcept(std::is_nothrow_swappable_v<T>) fundamentals TS v3)


Defect reports


The following behavior-changing defect reports were applied retroactively to
previously published C++ standards.


DR Applied to Behavior as published Correct behavior
LWG 3413 LFTSv2 the exception specification was ill-formed made well-formed

2022.07.31 http://cppreference.com

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.