bsl::function::swap

Exchange the targets held by this function and the specified other.

Synopsis

Declared in <bslstl_function.h>

void
swap(function& other) noexcept;

Description

The behavior is undefined unless get_allocator() == other.get_allocator().

Parameters

NameDescription
otherfunction with which to exchange targets