Changeset 55540fca in mainline
- Timestamp:
- 2018-07-05T21:41:22Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ca32d45
- Parents:
- 9c00022
- git-author:
- Dzejrou <dzejrou@…> (2018-05-03 20:36:14)
- git-committer:
- Dzejrou <dzejrou@…> (2018-07-05 21:41:22)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/include/impl/functional.hpp
r9c00022 r55540fca 1045 1045 1046 1046 /** 1047 * 20.9.12.2.6, null pointer comparisons: 1048 */ 1049 1050 template<class R, class... Args> 1051 bool operator==(const function<R(Args...)>& f, nullptr_t) noexcept 1052 { 1053 return !f; 1054 } 1055 1056 template<class R, class... Args> 1057 bool operator==(nullptr_t, const function<R(Args...)>& f) noexcept 1058 { 1059 return !f; 1060 } 1061 1062 template<class R, class... Args> 1063 bool operator!=(const function<R(Args...)>& f, nullptr_t) noexcept 1064 { 1065 return (bool)f; 1066 } 1067 1068 template<class R, class... Args> 1069 bool operator!=(nullptr_t, const function<R(Args...)>& f) noexcept 1070 { 1071 return (bool)f; 1072 } 1073 1074 /** 1047 1075 * 20.9.12.2.7, specialized algorithms: 1048 1076 */ … … 1054 1082 } 1055 1083 1056 /** 1057 * 20.9.12.2.6, null pointer comparisons: 1058 */ 1059 1060 template<class R, class... Args> 1061 bool operator==(const function<R(Args...)>& f, nullptr_t) noexcept 1062 { 1063 return !f; 1064 } 1065 1066 template<class R, class... Args> 1067 bool operator==(nullptr_t, const function<R(Args...)>& f) noexcept 1068 { 1069 return !f; 1070 } 1071 1072 template<class R, class... Args> 1073 bool operator!=(const function<R(Args...)>& f, nullptr_t) noexcept 1074 { 1075 return (bool)f; 1076 } 1077 1078 template<class R, class... Args> 1079 bool operator!=(nullptr_t, const function<R(Args...)>& f) noexcept 1080 { 1081 return (bool)f; 1082 } 1084 template<class R, class... Args, class Alloc> 1085 struct uses_allocator<function<R(Args...)>, Alloc> 1086 : true_type 1087 { /* DUMMY BODY */ }; 1083 1088 1084 1089 /**
Note:
See TracChangeset
for help on using the changeset viewer.