The contents of this module can be included with the header
hpx/modules/assertion.hpp. These headers may be used by user-code but are not
guaranteed stable (neither header location nor contents). You are using these at
your own risk. If you wish to use non-public functionality from a module we
strongly suggest only including the module header
the particular header in which the functionality you would like to use is
defined. See Public API for a list of names that are part of the public
This macro asserts that expr evaluates to true.
exprevaluates to false, The source location and
msgis being printed along with the expression and additional. Afterwards the program is being aborted. The assertion handler can be customized by calling hpx::assertion::set_assertion_handler().
expr: The expression to assert on. This can either be an expression that’s convertible to bool or a callable which returns bool
msg: The optional message that is used to give further information if the assert fails. This should be convertible to a std::string
Asserts are enabled if HPX_DEBUG is set. This is the default for