void swap( array& other ) noexcept(/* see below */);
| (since C++11)
constexpr void swap( array& other ) noexcept(/* see below */);
Exchanges the contents of the container with those of
other. Does not cause iterators and references to associate with the other container.
|other||-||container to exchange the contents with|
 Return value
In the expression above, the identifier
Linear in size of the container.
 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 2456||C++11|| the
||made to work|
 See also
| specializes the std::swap algorithm |