Electroneum
Loading...
Searching...
No Matches
testing::internal::ReturnRefOfCopyAction< T > Class Template Reference

#include <gmock-actions.h>

Public Member Functions

 ReturnRefOfCopyAction (const T &value)
template<typename F>
 operator Action< F > () const

Detailed Description

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

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

Constructor & Destructor Documentation

◆ ReturnRefOfCopyAction()

template<typename T>
testing::internal::ReturnRefOfCopyAction< T >::ReturnRefOfCopyAction ( const T & value)
inlineexplicit

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

Member Function Documentation

◆ operator Action< F >()

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

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

710 {
711 typedef typename Function<F>::Result Result;
712 // Asserts that the function return type is a reference. This
713 // catches the user error of using ReturnRefOfCopy(x) when Return(x)
714 // should be used, and generates some helpful error message.
718 return Action<F>(new Impl<F>(value_));
719 }
#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