Xmipp  v3.23.11-Nereus
Public Member Functions | Public Attributes | List of all members
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 1649 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 1650 of file gmock-actions.h.

1650  {
1651  return internal::Apply(
1652  [](const Params&... unpacked_params) {
1653  return new T(unpacked_params...);
1654  },
1655  params);
1656  }
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 1657 of file gmock-actions.h.


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