31 #ifndef COMMON_STD_FUNCTIONAL_H 32 #define COMMON_STD_FUNCTIONAL_H 36 template <
class _Arg,
class _Result>
38 using argument_type = _Arg;
39 using result_type = _Result;
42 template <
class _Arg1,
class _Arg2,
class _Result>
44 using first_argument_type = _Arg1;
45 using second_argument_type = _Arg2;
46 using result_type = _Result;
49 template <
typename _Fty>
53 function() : _fn(
nullptr) {}
54 function(_Fty *fn) : _fn(fn) {}
60 operator bool()
const {
61 return _fn !=
nullptr;
Definition: functional.h:43
Definition: functional.h:37
Definition: functional.h:50
Definition: algorithm.h:37