在线文档教程
C++
规律表达 | Regular expressions

std::swap(std::basic_regex)

STD::交换%28 std::basic[医]regex%29

template< class CharT, class Traits > void swap( basic_regex &lhs, basic_regex &rhs (since C++11)

重载std::swap算法std::basic_regex.交换lhs与...rhs.有效地打电话lhs.swap(rhs)...

参数

lhs, rhs-regular expressions to swap

返回值

%280%29

例外

noexcept规格:

noexcept

另见

swapswaps the contents (public member function)

© cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

http://en.cppreference.com/w/cpp/regex/basic[医]regex/swap 2