|
kaycxx-assert
C++ assertion library
|
Defines the assert_contain 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/contains.hpp>#include <kaycxx/assert/detail/to_string.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<typename Actual , typename Expected > requires detail::contains_supported<Actual, Expected> | |
| void | kaycxx::assert::assert_contain (Actual const &actual, Expected const &expected, std::string_view reason={}, std::optional< std::source_location > location=KAYCXX_ASSERT_DEFAULT_SOURCE) |
| Asserts that a string contains a substring or character, or that a range contains an element. | |
Defines the assert_contain function.