Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
testing::gmock_matchers_test::SampleVariantIntString Class Reference

Public Member Functions

 SampleVariantIntString (int i)
 
 SampleVariantIntString (const std::string &s)
 

Friends

template<typename T >
bool holds_alternative (const SampleVariantIntString &value)
 
template<typename T >
const Tget (const SampleVariantIntString &value)
 

Detailed Description

Definition at line 6617 of file gmock-matchers_test.cc.

Constructor & Destructor Documentation

◆ SampleVariantIntString() [1/2]

testing::gmock_matchers_test::SampleVariantIntString::SampleVariantIntString ( int i)
inline

Definition at line 6619 of file gmock-matchers_test.cc.

6619: i_(i), has_int_(true) {}

◆ SampleVariantIntString() [2/2]

testing::gmock_matchers_test::SampleVariantIntString::SampleVariantIntString ( const std::string & s)
inline

Definition at line 6620 of file gmock-matchers_test.cc.

6620: s_(s), has_int_(false) {}
char * s

Friends And Related Symbol Documentation

◆ get

template<typename T >
const T & get ( const SampleVariantIntString & value)
friend

Definition at line 6628 of file gmock-matchers_test.cc.

6628 {
6629 return value.get_impl(static_cast<T*>(NULL));
6630 }
#define value
Definition pkcs11.h:157
#define T(meth, val, expected)

◆ holds_alternative

template<typename T >
bool holds_alternative ( const SampleVariantIntString & value)
friend

Definition at line 6623 of file gmock-matchers_test.cc.

6623 {
6624 return value.has_int_ == internal::IsSame<T, int>::value;
6625 }

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