mimic++ v5
|
Generic matcher and the basic building block of most of the built-in matchers. More...
#include <Matcher.hpp>
Public Member Functions | |
constexpr | PredicateMatcher (Predicate predicate, StringT fmt, StringT invertedFmt, std::tuple< AdditionalArgs... > additionalArgs={}) noexcept(std::is_nothrow_move_constructible_v< Predicate > &&(... &&std::is_nothrow_move_constructible_v< AdditionalArgs >)) |
template<typename T > requires std::predicate< const Predicate&, T&, matches_reference_t<AdditionalArgs>...> | |
constexpr bool | matches (T &target) const noexcept(std::is_nothrow_invocable_v< const Predicate &, T &, matches_reference_t< AdditionalArgs >... >) |
constexpr StringT | describe () const |
constexpr auto | operator! () const & |
constexpr auto | operator! () && |
Generic matcher and the basic building block of most of the built-in matchers.
Predicate | The predicate type. |
AdditionalArgs | Addition argument types. |
|
inlineexplicitnodiscardconstexprnoexcept |
|
inlinenodiscardconstexpr |
|
inlinenodiscardconstexprnoexcept |
|
inlinenodiscardconstexpr |
|
inlinenodiscardconstexpr |