std::swap(std::basic_ostringstream)

template< class CharT, class Traits, class Alloc > void swap( std::basic_ostringstream<CharT,Traits,Alloc>& lhs, std::basic_ostringstream<CharT,Traits,Alloc>& rhs ); Specializes the std::swap algorithm for std::basic_ostringstream. 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_ofstream)

template< class CharT, class Traits > void swap( basic_ofstream<CharT,Traits> &lhs, basic_ofstream<CharT,Traits> &rhs ); Specializes the std::swap algorithm for std::basic_ofstream. 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) swaps two file streams (public member function)

std::swap(std::basic_istringstream)

template< class CharT, class Traits, class Alloc > void swap( std::basic_istringstream<CharT,Traits,Alloc>& lhs, std::basic_istringstream<CharT,Traits,Alloc>& rhs ); Specializes the std::swap algorithm for std::basic_istringstream. 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_ifstream)

template< class CharT, class Traits > void swap( basic_ifstream<CharT,Traits> &lhs, basic_ifstream<CharT,Traits> &rhs ); Specializes the std::swap algorithm for std::basic_ifstream. 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) swaps two file streams (public member function)

std::swap(std::basic_fstream)

template< class CharT, class Traits > void swap( basic_fstream<CharT,Traits> &lhs, basic_fstream<CharT,Traits> &rhs ); Specializes the std::swap algorithm for std::basic_fstream. 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) swaps two file streams (public member function)

std::swap(std::basic_filebuf)

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

std::swap(std::array)

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

std::swap

Defined in header <algorithm> Defined in header <utility> (until C++11)(since C++11) template< class T > void swap( T& a, T& b ); (1) template< class T2, size_t N > void swap( T2 (&a)[N], T2 (&b)[N]); (2) (since C++11) Exchanges the given values. 1) Swaps the values a and b. 2) Swaps the arrays a and b. In effect calls std::swap_ranges(a, a+N, b). Parameters a, b - the values to be swapped Type requirements - T must meet

std::sub_match::sub_match

constexpr sub_match(); Default constructs a std::sub_match. The matched member is set to false and the value of other members is undefined. This is the only publicly accessible and defined constructor. Parameters (none).

std::sub_match::operators (std::sub_match::str)

operator string_type() const; (1) string_type str() const; (2) Converts to an object of the underlying std::basic_string type. The first version is an implicit conversion, the second one is explicit. Parameters (none). Return value Returns the matched character sequence as an object of the underlying std::basic_string type. If the matched member is false then the empty string is returned. Complexity Linear in the length of the underlying character sequence. Example #