Exchange the targets held by the specified a and b functions.
Synopsis
Declared in <bslstl_function.h>
template<class PROTOTYPE>
void
swap(
function<PROTOTYPE>& a,
function<PROTOTYPE>& b) noexcept;
Description
The behavior is undefined unless `a.get_allocator() == b.get_allocator()`.
Parameters
Name |
Description |
a |
first function participating in the swap |
b |
second function participating in the swap |
Created with MrDocs