Recommended practice: Implementations should avoid the use of
dynamically allocated memory for small callable objects, for example, where
f's target is an object holding only a pointer or reference
to an object and a member function pointer.
Postconditions: If !f, *this has no target;
otherwise, the target of *this is equivalent to
the target of f before the construction, and
f is in a valid state with an unspecified value.
Recommended practice: Implementations should avoid the use of
dynamically allocated memory for small callable objects, for example,
where f's target is an object holding only a pointer or reference
to an object and a member function pointer.
Recommended practice: Implementations should avoid the use of
dynamically allocated memory for small callable objects, for example,
where f refers to an object holding only a pointer or
reference to an object and a member function pointer.
F::operator() is a non-static member function and
decltype(&F::operator() is either of the form
R(G::*)(A..)cv&optnoexceptopt
or of the form
R(*)(G, A..)noexceptopt
for a type G, or