T generic_category(T... args)
Definition: assert.hpp:13
T throw_if_ne(T value, T x, const char *message)
Throw a std::system_error with errno if value != x, otherwise return value.
Definition: assert.hpp:61
T throw_if_eq(T value, T x, const char *message)
Throw a std::system_error with errno if value == x, otherwise return value.
Definition: assert.hpp:25
T throw_if_lt(T value, T x, const char *message)
Throw a std::system_error with errno if value < x, otherwise return value.
Definition: assert.hpp:43
T throw_if_z(T value, const char *message)
Throw a std::system_error with errno if value == 0, otherwise return value.
Definition: assert.hpp:95
T throw_if_nz(T value, const char *message)
Throw a std::system_error with errno if value != 0, otherwise return value.
Definition: assert.hpp:78