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);

Parameter

Description

_Left

An object of type pair.

_Right

An object of type pair.

Header: <utility>

Namespace: std

Reference

Other Resources

Community Additions

ADD
Show: