Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
testing::internal::ReferenceOrValueWrapper< T > Class Template Reference

#include <gmock-spec-builders.h>

Public Member Functions

 ReferenceOrValueWrapper (T value)
 
T Unwrap ()
 
const TPeek () const
 

Detailed Description

template<typename T>
class testing::internal::ReferenceOrValueWrapper< T >

Definition at line 1314 of file gmock-spec-builders.h.

Constructor & Destructor Documentation

◆ ReferenceOrValueWrapper()

template<typename T >
testing::internal::ReferenceOrValueWrapper< T >::ReferenceOrValueWrapper ( T value)
inlineexplicit

Definition at line 1317 of file gmock-spec-builders.h.

1318 : value_(::testing::internal::move(value)) {
1319 }
const T & move(const T &t)
#define value
Definition pkcs11.h:157

Member Function Documentation

◆ Peek()

template<typename T >
const T & testing::internal::ReferenceOrValueWrapper< T >::Peek ( ) const
inline

Definition at line 1330 of file gmock-spec-builders.h.

1330 {
1331 return value_;
1332 }

◆ Unwrap()

template<typename T >
T testing::internal::ReferenceOrValueWrapper< T >::Unwrap ( )
inline

Definition at line 1324 of file gmock-spec-builders.h.

1324{ return ::testing::internal::move(value_); }

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