Electroneum
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.

705 : value_(value) {} // NOLINT
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1225

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.
717  use_Return_instead_of_ReturnRefOfCopy_to_return_a_value);
718  return Action<F>(new Impl<F>(value_));
719  }
#define GTEST_COMPILE_ASSERT_(expr, msg)
Definition: gtest-port.h:1032

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