21
Containers library
[containers]
21.3
Sequence containers
[sequences]
21.3.7
Class template
array
[array]
21.3.7.4
Specialized algorithms
[array.special]
🔗
template<class T, size_t N> void swap(array<T, N>& x, array<T, N>& y) noexcept(noexcept(x.swap(y)));
1
#
Remarks:
This function shall not participate in overload resolution unless
N == 0
or
is_swappable_v<T>
is
true
.
2
#
Effects:
As if by
x.swap(y)
.
3
#
Complexity:
Linear in
N
.