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

#include <gmock-actions.h>

Public Member Functions

 ReturnRefAction (T &ref)
 
template<typename F >
 operator Action< F > () const
 

Detailed Description

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

Definition at line 683 of file gmock-actions.h.

Constructor & Destructor Documentation

◆ ReturnRefAction()

template<typename T >
testing::internal::ReturnRefAction< T >::ReturnRefAction ( T & ref)
inlineexplicit

Definition at line 686 of file gmock-actions.h.

686: ref_(ref) {} // NOLINT

Member Function Documentation

◆ operator Action< F >()

template<typename T >
template<typename F >
testing::internal::ReturnRefAction< T >::operator Action< F > ( ) const
inline

Definition at line 691 of file gmock-actions.h.

691 {
692 typedef typename Function<F>::Result Result;
693 // Asserts that the function return type is a reference. This
694 // catches the user error of using ReturnRef(x) when Return(x)
695 // should be used, and generates some helpful error message.
697 use_Return_instead_of_ReturnRef_to_return_a_value);
698 return Action<F>(new Impl<F>(ref_));
699 }
#define GTEST_COMPILE_ASSERT_(expr, msg)

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