26
Containers library
[containers]
26.3
Sequence containers
[sequences]
26.3.7
Class template
array
[array]
26.3.7.7
array::swap
[array.swap]
void swap(array& y) noexcept(is_nothrow_swappable_v<T>);
1
#
Effects:
Equivalent to
swap_ranges(begin(), end(), y.begin())
.
2
#
[
Note
:
Unlike the
swap
function for other containers,
array::swap
takes linear time, may exit via an exception, and does not cause iterators to become associated with the other container
.
—
end note
]