Generic matcher and the basic building block of most of the built-in matchers.
More...
|
constexpr | PredicateMatcher (Predicate predicate, StringViewT fmt, StringViewT invertedFmt, std::tuple< AdditionalArgs... > additionalArgs={}) noexcept(std::is_nothrow_move_constructible_v< Predicate > &&(... &&std::is_nothrow_move_constructible_v< AdditionalArgs >)) |
|
template<typename First, typename... Others>
requires std::predicate< const Predicate&, First&, Others&..., matches_reference_t<AdditionalArgs>...> |
constexpr bool | matches (First &first, Others &... others) const noexcept(std::is_nothrow_invocable_v< const Predicate &, First &, Others &..., matches_reference_t< AdditionalArgs >... >) |
|
constexpr StringT | describe () const |
|
constexpr auto | operator! () const & |
|
constexpr auto | operator! () && |
|
template<typename Predicate, typename... AdditionalArgs>
requires std::is_move_constructible_v<Predicate> && (... && std::is_move_constructible_v<AdditionalArgs>)
class mimicpp::PredicateMatcher< Predicate, AdditionalArgs >
Generic matcher and the basic building block of most of the built-in matchers.
- Template Parameters
-
Predicate | The predicate type. |
AdditionalArgs | Addition argument types. |