Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 463 Bytes

File metadata and controls

18 lines (12 loc) · 463 Bytes

assert_less

Asserts that the actual value is less 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.

#include <kaycxx/assert.hpp>

using namespace kaycxx::assert;

int main() {
    assert_less(5, 10);
    assert_less(1.0, 2.5);
}

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