kaycxx-assert
C++ assertion library
Loading...
Searching...
No Matches
Namespaces | Functions
assert_less.hpp File Reference

Defines the assert_less function. More...

#include <format>
#include <string_view>
#include <utility>
#include <kaycxx/assert/assertion_error.hpp>
#include <kaycxx/assert/detail/source_location.hpp>
#include <kaycxx/assert/detail/ordered_value.hpp>
#include <kaycxx/assert/detail/to_string.hpp>
Include dependency graph for assert_less.hpp:
This graph shows which files directly or indirectly include this file:

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::ordered_value T>
void kaycxx::assert::assert_less (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 less than the expected value.
 

Detailed Description

Defines the assert_less function.