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