A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.tutorialspoint.com/cpp_standard_library/cpp_functional_swap_non_member.htm below:

C++ Functional: Non-Member Swap Function

C++ Functional Library - swap(std::function) Description

It overloads the std::swap algorithm for std::function. Exchanges the state of lhs with that of rhs. Effectively calls lhs.swap(rhs).

Declaration

Following is the declaration for std::swap.

template< class R, class... Args >
void swap( function<R(Args...)> &lhs, function<R(Args...)> &rhs );
C++11
template< class R, class... Args >
void swap( function<R(Args...)> &lhs, function<R(Args...)> &rhs );
Parameters

lhs, rhs − It is a polymorphic function wrappers whose states to swap.

Return Value

none

Exceptions

none

functional.htm


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4