41 std::string_view reason = {},
42 std::optional<std::source_location> location = KAYCXX_ASSERT_DEFAULT_SOURCE
44 if (!(actual > expected)) {
45 auto actual_string = detail::to_string(actual);
46 auto expected_string = detail::to_string(expected);
47 auto message = std::format(
"Expected <{}> to be greater than <{}>", actual_string, expected_string);
48 throw assertion_error(
51 std::move(actual_string),
52 std::move(expected_string),
void assert_greater(T const &actual, T const &expected, std::string_view reason={}, std::optional< std::source_location > location=KAYCXX_ASSERT_DEFAULT_SOURCE)
Asserts that the actual value is greater than the expected value.
Definition assert_greater.hpp:38