A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://timsong-cpp.github.io/cppwp/n4140/tuple.swap below:

20 General utilities library [utilities]

20.4.2.3 swap [tuple.swap]

void swap(tuple& rhs) noexcept(see below);

1

Remark: The expression inside noexcept is equivalent to the logical and of the following expressions:

noexcept(swap(declval<Ti&>>(), declval<Ti&>()))

where Ti is the ith type in Types.

2

Requires: Each element in *this shall be swappable with ([swappable.requirements]) the corresponding element in rhs.

3

Effects: Calls swap for each element in *this and its corresponding element in rhs.

4

Throws: Nothing unless one of the element-wise swap calls throws an exception.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4