Electroneum
Loading...
Searching...
No Matches
testing::SafeMatcherCastImpl< T > Class Template Reference

#include <gmock-matchers.h>

Static Public Member Functions

template<typename M>
static Matcher< TCast (const M &polymorphic_matcher_or_value)
template<typename U>
static Matcher< TCast (const Matcher< U > &matcher)

Detailed Description

template<typename T>
class testing::SafeMatcherCastImpl< T >

Definition at line 622 of file gmock-matchers.h.

Member Function Documentation

◆ Cast() [1/2]

template<typename T>
template<typename M>
Matcher< T > testing::SafeMatcherCastImpl< T >::Cast ( const M & polymorphic_matcher_or_value)
inlinestatic

Definition at line 627 of file gmock-matchers.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Cast() [2/2]

template<typename T>
template<typename U>
Matcher< T > testing::SafeMatcherCastImpl< T >::Cast ( const Matcher< U > & matcher)
inlinestatic

Definition at line 641 of file gmock-matchers.h.

641 {
642 // Enforce that T can be implicitly converted to U.
645 // Enforce that we are not converting a non-reference type T to a reference
646 // type U.
650 // In case both T and U are arithmetic types, enforce that the
651 // conversion is not lossy.
657 kTIsOther || kUIsOther ||
660 return MatcherCast<T>(matcher);
661 }
#define GTEST_REMOVE_REFERENCE_AND_CONST_(T)
#define GTEST_COMPILE_ASSERT_(expr, msg)
#define GMOCK_KIND_OF_(type)
Matcher< T > MatcherCast(const M &matcher)
Here is the call graph for this function:

The documentation for this class was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-matchers.h