std::experimental::not_fn

Header: <experimental/functional>

Creates a forwarding call wrapper that returns the complement of the callable object it holds.

# Declarations

template< class F>
/*unspecified*/ not_fn( F&& f );

(library fundamentals TS v2)

# Parameters

# Return value

Let FD be std::decay_t and fd be an lvalue of type FD constructed from std::forward(f).

# Notes

not_fn is intended to replace the C++03-era negators std::not1 and std::not2.

# See also