std::swap(std::pair)

std::swap(std::pair)

Defined in header <utility>
template< class T1, class T2 >
void swap( pair<T1,T2>& lhs, pair<T1,T2>& rhs );
(since C++11)

Swaps the contents of lhs and rhs. Equivalent to lhs.swap(rhs).

Parameters

lhs, rhs - pairs whose contents to swap

Return value

(none).

Exceptions

noexcept specification:
noexcept(noexcept(lhs.swap(rhs)))

See also

swaps the values of two objects
(function template)

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/utility/pair/swap2

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部