|
kaycxx-assert
C++ assertion library
|
Defines the assert_not_null function. More...
#include <string_view>#include <kaycxx/assert/assertion_error.hpp>#include <kaycxx/assert/detail/source_location.hpp>#include <kaycxx/assert/detail/nullable.hpp>

Go to the source code of this file.
Namespaces | |
| namespace | kaycxx |
| Root namespace for kaycxx libraries. | |
| namespace | kaycxx::assert |
| Assertion functions and related types. | |
Functions | |
| template<detail::nullable T> | |
| void | kaycxx::assert::assert_not_null (T const &actual, std::string_view reason={}, std::optional< std::source_location > location=KAYCXX_ASSERT_DEFAULT_SOURCE) |
| Asserts that the argument is not null. | |
Defines the assert_not_null function.