Electroneum
testing::internal::EitherOfMatcher< Matcher1, Matcher2 > Class Template Reference

#include <gmock-matchers.h>

Public Member Functions

 EitherOfMatcher (Matcher1 matcher1, Matcher2 matcher2)
 
template<typename T >
 operator Matcher< T > () const
 

Detailed Description

template<typename Matcher1, typename Matcher2>
class testing::internal::EitherOfMatcher< Matcher1, Matcher2 >

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

Constructor & Destructor Documentation

◆ EitherOfMatcher()

template<typename Matcher1 , typename Matcher2 >
testing::internal::EitherOfMatcher< Matcher1, Matcher2 >::EitherOfMatcher ( Matcher1  matcher1,
Matcher2  matcher2 
)
inline

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

1736  : matcher1_(matcher1), matcher2_(matcher2) {}

Member Function Documentation

◆ operator Matcher< T >()

template<typename Matcher1 , typename Matcher2 >
template<typename T >
testing::internal::EitherOfMatcher< Matcher1, Matcher2 >::operator Matcher< T > ( ) const
inline

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

1742  {
1743  return Matcher<T>(new EitherOfMatcherImpl<T>(
1744  SafeMatcherCast<T>(matcher1_), SafeMatcherCast<T>(matcher2_)));
1745  }

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