Electroneum
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 654 of file gmock-actions.h.

Constructor & Destructor Documentation

◆ ReturnRefAction()

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

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

657: 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 662 of file gmock-actions.h.

662 {
663 typedef typename Function<F>::Result Result;
664 // Asserts that the function return type is a reference. This
665 // catches the user error of using ReturnRef(x) when Return(x)
666 // should be used, and generates some helpful error message.
669 return Action<F>(new Impl<F>(ref_));
670 }
#define GTEST_COMPILE_ASSERT_(expr, msg)

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-actions.h