tesseract v5.3.3.20231005
testing::internal::ReturnNewAction< T, Params > Struct Template Reference

#include <gmock-actions.h>

Public Member Functions

T * operator() () const
 

Public Attributes

std::tuple< Params... > params
 

Detailed Description

template<typename T, typename... Params>
struct testing::internal::ReturnNewAction< T, Params >

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

Member Function Documentation

◆ operator()()

template<typename T , typename... Params>
T * testing::internal::ReturnNewAction< T, Params >::operator() ( ) const
inline

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

1069 {
1070 return internal::Apply(
1071 [](const Params&... unpacked_params) {
1072 return new T(unpacked_params...);
1073 },
1074 params);
1075 }
auto Apply(F &&f, Tuple &&args) -> decltype(ApplyImpl(std::forward< F >(f), std::forward< Tuple >(args), MakeIndexSequence< std::tuple_size< typename std::remove_reference< Tuple >::type >::value >()))
std::tuple< Params... > params

Member Data Documentation

◆ params

template<typename T , typename... Params>
std::tuple<Params...> testing::internal::ReturnNewAction< T, Params >::params

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


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