swap (<utility>)
Exchanges the elements of two pair objects. For more information, see pair Structure.
template<class Type1, class Type2>
void swap(pair<Type1, Type2>&_Left,
pair<Type1, Type2>&_Right);
Parameters
Parameter |
Description |
---|---|
_Left |
An object of type pair. |
_Right |
An object of type pair. |
Requirements
Header: <utility>
Namespace: std