Container‐based version of the <algorithm> std::swap_ranges() function to swap a container's elements with another container's elements. Swaps the first N elements of c1 and c2, where N = min(size(c1), size(c2)).
Synopsis
Declared in <absl/algorithm/container.h>
template<
typename C1,
typename C2>
constexpr
/* implementation-defined */
c_swap_ranges(
C1& c1,
C2& c2);
Return Value
An iterator to the element past the last swapped element in c2.
Parameters
Name |
Description |
c1 |
The first container. |
c2 |
The second container. |
Created with MrDocs