tesseract v5.3.3.20231005
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 966 of file gmock-actions.h.

Constructor & Destructor Documentation

◆ IgnoreResultAction()

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

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

968: action_(action) {}
action
Definition: upload.py:408

Member Function Documentation

◆ operator Action< F >()

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

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

971 {
972 // Assert statement belongs here because this is the best place to verify
973 // conditions on F. It produces the clearest error messages
974 // in most compilers.
975 // Impl really belongs in this scope as a local class but can't
976 // because MSVC produces duplicate symbols in different translation units
977 // in this case. Until MS fixes that bug we put Impl into the class scope
978 // and put the typedef both here (for use in assert statement) and
979 // in the Impl class. But both definitions must be the same.
980 typedef typename internal::Function<F>::Result Result;
981
982 // Asserts at compile time that F returns void.
983 static_assert(std::is_void<Result>::value, "Result type should be void.");
984
985 return Action<F>(new Impl<F>(action_));
986 }
int value

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