kaycxx-assert
C++ assertion library
Loading...
Searching...
No Matches
assert_greater

Asserts that the actual value is greater than the expected value.

The value type must provide a complete ordering. Raw pointers are intentionally rejected because relational pointer operators compare addresses, not pointed-to values.

using namespace kaycxx::assert;
int main() {
assert_greater(10, 5);
assert_greater(2.5, 1.0);
}
Includes the complete public assertion API.
Assertion functions and related types.
Definition assert.hpp:15

Use this when the strict > relation is the behavior you want to assert.