mimic++ v10.0.1
Loading...
Searching...
No Matches
mimicpp::GenericMatcher< isInverted, Predicate, Args > Class Template Reference

#include <GeneralMatchers.hpp>

Public Types

using Context = MatchEvaluationContext<Args...>
using ArgsStorage = std::tuple<Args...>

Public Member Functions

constexpr GenericMatcher (Predicate predicate, format::vformat_string fmt, ArgsStorage args) noexcept(std::is_nothrow_move_constructible_v< Predicate > &&std::is_nothrow_move_constructible_v< ArgsStorage >)
template<typename First, typename... Others>
requires std::predicate<Predicate const&, Context&, First&, Others&...>
expectation::MatchResult matches (First &first, Others &... others) const
constexpr auto operator! () const &
constexpr auto operator! () &&

Member Typedef Documentation

◆ ArgsStorage

template<bool isInverted, util::unqualified Predicate, util::unqualified... Args>
using mimicpp::GenericMatcher< isInverted, Predicate, Args >::ArgsStorage = std::tuple<Args...>

◆ Context

template<bool isInverted, util::unqualified Predicate, util::unqualified... Args>
using mimicpp::GenericMatcher< isInverted, Predicate, Args >::Context = MatchEvaluationContext<Args...>

Constructor & Destructor Documentation

◆ GenericMatcher()

template<bool isInverted, util::unqualified Predicate, util::unqualified... Args>
mimicpp::GenericMatcher< isInverted, Predicate, Args >::GenericMatcher ( Predicate predicate,
format::vformat_string fmt,
ArgsStorage args )
inlineexplicitnodiscardconstexprnoexcept
Here is the caller graph for this function:

Member Function Documentation

◆ matches()

template<bool isInverted, util::unqualified Predicate, util::unqualified... Args>
template<typename First, typename... Others>
requires std::predicate<Predicate const&, Context&, First&, Others&...>
expectation::MatchResult mimicpp::GenericMatcher< isInverted, Predicate, Args >::matches ( First & first,
Others &... others ) const
inlinenodiscard

◆ operator!() [1/2]

template<bool isInverted, util::unqualified Predicate, util::unqualified... Args>
auto mimicpp::GenericMatcher< isInverted, Predicate, Args >::operator! ( ) &&
inlinenodiscardconstexpr
Here is the call graph for this function:

◆ operator!() [2/2]

template<bool isInverted, util::unqualified Predicate, util::unqualified... Args>
auto mimicpp::GenericMatcher< isInverted, Predicate, Args >::operator! ( ) const &
inlinenodiscardconstexpr
Here is the call graph for this function:

The documentation for this class was generated from the following file: