Generic matcher and the basic building block of most of the built-in matchers. More...
#include <GeneralMatchers.hpp>
Public Member Functions | |
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! () && |
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 |