mimic++ v1
|
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=std::tuple{}) noexcept(std::is_nothrow_move_constructible_v< Predicate > &&(... &&std::is_nothrow_move_constructible_v< AdditionalArgs >)) |
template<typename T > requires std::predicate<const Predicate&, T&, const AdditionalArgs&...> | |
constexpr bool | matches (T &target) const noexcept(std::is_nothrow_invocable_v< const Predicate &, T &, const 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 |