Exchange the targets held by this function and the specified other.
function
other
Declared in <bslstl_function.h>
<bslstl_function.h>
void swap(function& other) noexcept;
The behavior is undefined unless get_allocator() == other.get_allocator().
get_allocator() == other.get_allocator()