Electroneum
testing::internal::IgnoreResultAction< A > Class Template Reference

#include <gmock-actions.h>

Public Member Functions

 IgnoreResultAction (const A &action)
 
template<typename F >
 operator Action< F > () const
 

Detailed Description

template<typename A>
class testing::internal::IgnoreResultAction< A >

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

Constructor & Destructor Documentation

◆ IgnoreResultAction()

template<typename A >
testing::internal::IgnoreResultAction< A >::IgnoreResultAction ( const A action)
inlineexplicit

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

892 : action_(action) {}

Member Function Documentation

◆ operator Action< F >()

template<typename A >
template<typename F >
testing::internal::IgnoreResultAction< A >::operator Action< F > ( ) const
inline

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

895  {
896  // Assert statement belongs here because this is the best place to verify
897  // conditions on F. It produces the clearest error messages
898  // in most compilers.
899  // Impl really belongs in this scope as a local class but can't
900  // because MSVC produces duplicate symbols in different translation units
901  // in this case. Until MS fixes that bug we put Impl into the class scope
902  // and put the typedef both here (for use in assert statement) and
903  // in the Impl class. But both definitions must be the same.
904  typedef typename internal::Function<F>::Result Result;
905 
906  // Asserts at compile time that F returns void.
907  CompileAssertTypesEqual<void, Result>();
908 
909  return Action<F>(new Impl<F>(action_));
910  }

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