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