Matcher, which can be used to disambiguate between similar overloads.
More...
#include <GeneralMatchers.hpp>
|
| template<typename U> |
| using | is_accepting = std::is_same<T, U> |
| |
|
| static constexpr bool | matches (auto &&target) noexcept |
| |
| static constexpr std::nullopt_t | describe () noexcept |
| |
template<typename T>
class mimicpp::TypeMatcher< T >
Matcher, which can be used to disambiguate between similar overloads.
SECTION("Selecting void(int&&)")
{
mock(42);
}
SECTION("Selecting void(int const&)")
{
int constexpr i{42};
mock(i);
}
◆ is_accepting
template<typename T>
template<typename U>
◆ describe()
template<typename T>
|
|
inlinestaticnodiscardconstexprnoexcept |
◆ matches()
template<typename T>
|
|
inlinestaticnodiscardconstexprnoexcept |
The documentation for this class was generated from the following file: