Utility Function Object Classes#
The definitions of the utility function objects are available through the
<oneapi/dpl/functional> header. All function objects are implemented in the oneapi::dpl namespace.
identity: A function object type where the operator() returns the argument unchanged. It is an implementation ofstd::identitythat can be used prior to C++20.minimum: A function object type where the operator() appliesstd::lessto its arguments, then returns the lesser argument unchanged.maximum: A function object type where the operator() appliesstd::greaterto its arguments, then returns the greater argument unchanged.