Go to the source code of this file.
|
#define | NDNPH_DECLARE_NE(T, specifier) specifier bool operator!=(const T& lhs, const T& rhs) { return !(lhs == rhs); } |
| Declare operator!= in terms of operator==. More...
|
|
#define | NDNPH_DECLARE_GT_LE_GE(T, specifier) |
| Declare operator>, operator<=, operator>= in terms of operator<. More...
|
|
|
template<typename I > |
std::enable_if< std::is_integral< I >::value, I >::type | ndnph::divCeil (const I &a, const I &b) |
| Compute ceil( a / b ). More...
|
|
◆ NDNPH_DECLARE_GT_LE_GE
#define NDNPH_DECLARE_GT_LE_GE |
( |
|
T, |
|
|
|
specifier |
|
) |
| |
Value: specifier bool operator>(const T& lhs, const T& rhs) { return rhs < lhs; } \
specifier bool operator<=(const T& lhs, const T& rhs) { return !(lhs > rhs); } \
specifier bool operator>=(const T& lhs, const T& rhs) { return !(lhs < rhs); }
Declare operator>, operator<=, operator>= in terms of operator<.
◆ NDNPH_DECLARE_NE
#define NDNPH_DECLARE_NE |
( |
|
T, |
|
|
|
specifier |
|
) |
| specifier bool operator!=(const T& lhs, const T& rhs) { return !(lhs == rhs); } |
Declare operator!= in terms of operator==.