tesseract v5.3.3.20231005
testing::internal::WithArgsAction< InnerAction, I > Struct Template Reference

#include <gmock-actions.h>

Public Member Functions

template<typename R , typename... Args>
 operator Action< R (Args...)>() const
 

Public Attributes

InnerAction action
 

Detailed Description

template<typename InnerAction, size_t... I>
struct testing::internal::WithArgsAction< InnerAction, I >

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

Member Function Documentation

◆ operator Action< R()

template<typename InnerAction , size_t... I>
template<typename R , typename... Args>
testing::internal::WithArgsAction< InnerAction, I >::operator Action< R ( Args...  ) const
inline

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

1021 { // NOLINT
1022 using TupleType = std::tuple<Args...>;
1023 Action<R(typename std::tuple_element<I, TupleType>::type...)>
1024 converted(action);
1025
1026 return [converted](Args... args) -> R {
1027 return converted.Perform(std::forward_as_tuple(
1028 std::get<I>(std::forward_as_tuple(std::forward<Args>(args)...))...));
1029 };
1030 }
type
Definition: upload.py:458

Member Data Documentation

◆ action

template<typename InnerAction , size_t... I>
InnerAction testing::internal::WithArgsAction< InnerAction, I >::action

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


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