37 std::string_view reason = {},
38 std::optional<std::source_location> location = std::source_location::current()
40 if (!(actual ==
nullptr)) {
41 auto actual_string = detail::to_string(actual);
42 auto message = std::format(
"Expected <{}> to be null", actual_string);
43 throw assertion_error(
46 std::move(actual_string),
void assert_null(T const &actual, std::string_view reason={}, std::optional< std::source_location > location=std::source_location::current())
Asserts that the argument is null.
Definition assert_null.hpp:35