Exchange this object's target object, manager function, and invoker with those of the specified other object. The behavior is undefined unless this->get_allocator() == other->get_allocator().
other
this->get_allocator() == other->get_allocator()
Declared in <bslstl_function_rep.h>
<bslstl_function_rep.h>
void swap(Function_Rep& other) noexcept;