Function template swap
boost::swap — Member group: Non-member functions.
Synopsis
template<typename T, std::size_t N>
void swap(array< T, N > & x, array< T, N > & y);
Description
Global swap function
This function swaps the contents of two arrays with the array swap
member function.
Complexity.
Linear
Parameters: |
x
|
First array whose contents to swap |
y
|
Second array whose contents to swap |
|
Template Parameters: |
N
|
array size |
T
|
array value type |
|
Returns: |
(none) |