libcppwrap
A collection of C++ wrappers for native APIs
Loading...
Searching...
No Matches
Namespaces | Functions
assert.hpp File Reference
#include <cerrno>
#include <system_error>
Include dependency graph for assert.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  w
 

Functions

template<typename T >
w::throw_if_eq (T value, T x, const char *message)
 Throw a std::system_error with errno if value == x, otherwise return value. More...
 
template<typename T >
w::throw_if_lt (T value, T x, const char *message)
 Throw a std::system_error with errno if value < x, otherwise return value. More...
 
template<typename T >
w::throw_if_ne (T value, T x, const char *message)
 Throw a std::system_error with errno if value != x, otherwise return value. More...
 
template<typename T >
w::throw_if_nz (T value, const char *message)
 Throw a std::system_error with errno if value != 0, otherwise return value. More...
 
template<typename T >
w::throw_if_z (T value, const char *message)
 Throw a std::system_error with errno if value == 0, otherwise return value. More...