mimic++ v6
Loading...
Searching...
No Matches
mimicpp::matches Namespace Reference

Namespaces

namespace  range
 
namespace  str
 

Functions

consteval auto NaN () noexcept
 Tests, whether the floating-point target is NaN.
 
constexpr auto approx_abs (const std::floating_point auto value, const std::floating_point auto epsilon)
 Tests, whether the floating-point target is approximately equal to value.
 
constexpr auto approx_rel (const std::floating_point auto value, const std::floating_point auto relEpsilon)
 Tests, whether the floating-point target is approximately equal to value.
 
template<std::floating_point Float>
constexpr auto approx_rel (const Float value)
 Tests, whether the floating-point target is approximately equal to value.
 
template<typename T>
constexpr auto eq (T &&value)
 Tests, whether the target compares equal to the expected value.
 
template<typename T>
constexpr auto ne (T &&value)
 Tests, whether the target compares not equal to the expected value.
 
template<typename T>
constexpr auto lt (T &&value)
 Tests, whether the target is less than the expected value.
 
template<typename T>
constexpr auto le (T &&value)
 Tests, whether the target is less than or equal to the expected value.
 
template<typename T>
constexpr auto gt (T &&value)
 Tests, whether the target is greater than the expected value.
 
template<typename T>
constexpr auto ge (T &&value)
 Tests, whether the target is greater than or equal to the expected value.
 
template<typename UnaryPredicate>
constexpr auto predicate (UnaryPredicate &&predicate, StringViewT description="passes predicate", StringViewT invertedDescription="fails predicate")
 Tests, whether the target fulfills the given predicate.
 
template<satisfies< std::is_lvalue_reference > T>
constexpr auto instance (T &&instance)
 Tests, whether the target is the expected instance.
 

Variables

constexpr WildcardMatcher _ {}
 The wildcard matcher, always matching.