std::swap(std::match_results)

Defined in header <regex> template< class BidirIt, class Alloc > void swap( match_results<BidirIt,Alloc>& x1, match_results<BidirIt,Alloc>& x2 ); (since C++11) Specializes the std::swap algorithm for std::match_results. Exchanges the contents of x1 with those of x2. Effectively calls x1.swap(x2). Parameters x1, x2 - the match_results objects whose contents will be swapped Type requirements - BidirIt must meet the requirements

std::swap(std::map)

template< class Key, class T, class Compare, class Alloc > void swap( map<Key,T,Compare,Alloc>& lhs, map<Key,T,Compare,Alloc>& rhs ); Specializes the std::swap algorithm for std::map. Swaps the contents of lhs and rhs. Calls lhs.swap(rhs). Parameters lhs, rhs - containers whose contents to swap Return value (none). Complexity Constant. Exceptions noexcept specification: noexcept(noexcept(lhs.swap(rhs))) (since C++17) See a

std::swap(std::list)

template< class T, class Alloc > void swap( list<T,Alloc>& lhs, list<T,Alloc>& rhs ); Specializes the std::swap algorithm for std::list. Swaps the contents of lhs and rhs. Calls lhs.swap(rhs). Parameters lhs, rhs - containers whose contents to swap Return value (none). Complexity Constant. Exceptions noexcept specification: noexcept(noexcept(lhs.swap(rhs))) (since C++17) See also swap swaps the contents (public member

std::swap(std::function)

template< class R, class... Args > void swap( function<R(Args...)> &lhs, function<R(Args...)> &rhs ); Overloads the std::swap algorithm for std::function. Exchanges the state of lhs with that of rhs. Effectively calls lhs.swap(rhs). Parameters lhs, rhs - polymorphic function wrappers whose states to swap Return value (none). Exceptions (none). Example See also swap swaps the contents (public member function)

std::swap(std::forward_list)

template< class T, class Alloc > void swap( forward_list<T,Alloc>& lhs, forward_list<T,Alloc>& rhs ); (since C++11) Specializes the std::swap algorithm for std::forward_list. Swaps the contents of lhs and rhs. Calls lhs.swap(rhs). Parameters lhs, rhs - containers whose contents to swap Return value (none). Complexity Constant. Exceptions noexcept specification: noexcept(noexcept(lhs.swap(rhs))) (since C++17) See also sw

std::swap(std::deque)

template< class T, class Alloc > void swap( deque<T,Alloc>& lhs, deque<T,Alloc>& rhs ); Specializes the std::swap algorithm for std::deque. Swaps the contents of lhs and rhs. Calls lhs.swap(rhs). Parameters lhs, rhs - containers whose contents to swap Return value (none). Complexity Constant. Exceptions noexcept specification: noexcept(noexcept(lhs.swap(rhs))) (since C++17) See also swap swaps the contents (public mem

std::swap(std::basic_stringstream)

template< class CharT, class Traits, class Alloc > void swap( std::basic_stringstream<CharT,Traits,Alloc>& lhs, std::basic_stringstream<CharT,Traits,Alloc>& rhs ); Specializes the std::swap algorithm for std::basic_stringstream. Exchanges the state of lhs with that of rhs. Effectively calls lhs.swap(rhs). Parameters lhs, rhs - streams whose state to swap Return value (none). Exceptions (none). Example See also swap (C++11)

std::swap(std::basic_stringbuf)

template< class CharT, class Traits, class Alloc > void swap( std::basic_stringbuf<CharT,Traits,Alloc>& lhs, std::basic_stringbuf<CharT,Traits,Alloc>& rhs ); (since C++11) Overloads the std::swap algorithm for std::basic_stringbuf. Exchanges the state of lhs with that of rhs. Effectively calls lhs.swap(rhs). Parameters lhs, rhs - std::basic_stringbuf objects whose states to swap Return value (none). Example See also swap (C++11

std::swap(std::basic_string)

template< class T, class Traits, class Alloc > void swap( basic_string<T, Traits, Alloc> &lhs, basic_string<T, Traits, Alloc> &rhs ); Specializes the std::swap algorithm for std::basic_string. Swaps the contents of lhs and rhs. Equivalent to lhs.swap(rhs). Parameters lhs, rhs - strings whose contents to swap Return value (none). Complexity Constant. Exceptions noexcept specification: noexcept(noexcept(lhs.swap(rhs))) (since C++17) Se

std::swap(std::basic_regex)

template< class CharT, class Traits > void swap( basic_regex<CharT,Traits> &lhs, basic_regex<CharT,Traits> &rhs ); (since C++11) Overloads the std::swap algorithm for std::basic_regex. Exchanges the state of lhs with that of rhs. Effectively calls lhs.swap(rhs). Parameters lhs, rhs - regular expressions to swap Return value (none). Exceptions noexcept specification: noexcept Example See also swap swaps the contents (public member fu