tesseract v5.3.3.20231005
testing::internal::FlatTupleBase< FlatTuple< T... >, IndexSequence< Idx... > > Struct Template Reference

#include <gtest-internal.h>

Inheritance diagram for testing::internal::FlatTupleBase< FlatTuple< T... >, IndexSequence< Idx... > >:
testing::internal::FlatTupleElemBase< FlatTuple< T... >, Idx >

Public Types

using Indices = IndexSequence< Idx... >
 

Public Member Functions

 FlatTupleBase ()=default
 
template<typename... Args>
 FlatTupleBase (FlatTupleConstructTag, Args &&... args)
 
template<size_t I>
const ElemFromList< I, T... >::type & Get () const
 
template<size_t I>
ElemFromList< I, T... >::type & Get ()
 
template<typename F >
auto Apply (F &&f) -> decltype(std::forward< F >(f)(this->Get< Idx >()...))
 
template<typename F >
auto Apply (F &&f) const -> decltype(std::forward< F >(f)(this->Get< Idx >()...))
 

Detailed Description

template<size_t... Idx, typename... T>
struct testing::internal::FlatTupleBase< FlatTuple< T... >, IndexSequence< Idx... > >

Definition at line 1236 of file gtest-internal.h.

Member Typedef Documentation

◆ Indices

template<size_t... Idx, typename... T>
using testing::internal::FlatTupleBase< FlatTuple< T... >, IndexSequence< Idx... > >::Indices = IndexSequence<Idx...>

Definition at line 1238 of file gtest-internal.h.

Constructor & Destructor Documentation

◆ FlatTupleBase() [1/2]

template<size_t... Idx, typename... T>
testing::internal::FlatTupleBase< FlatTuple< T... >, IndexSequence< Idx... > >::FlatTupleBase ( )
default

◆ FlatTupleBase() [2/2]

template<size_t... Idx, typename... T>
template<typename... Args>
testing::internal::FlatTupleBase< FlatTuple< T... >, IndexSequence< Idx... > >::FlatTupleBase ( FlatTupleConstructTag  ,
Args &&...  args 
)
inlineexplicit

Definition at line 1241 of file gtest-internal.h.

1242 : FlatTupleElemBase<FlatTuple<T...>, Idx>(FlatTupleConstructTag{},
1243 std::forward<Args>(args))... {}

Member Function Documentation

◆ Apply() [1/2]

template<size_t... Idx, typename... T>
template<typename F >
auto testing::internal::FlatTupleBase< FlatTuple< T... >, IndexSequence< Idx... > >::Apply ( F &&  f) -> decltype(std::forward<F>(f)(this->Get<Idx>()...))
inline

Definition at line 1256 of file gtest-internal.h.

1256 {
1257 return std::forward<F>(f)(Get<Idx>()...);
1258 }

◆ Apply() [2/2]

template<size_t... Idx, typename... T>
template<typename F >
auto testing::internal::FlatTupleBase< FlatTuple< T... >, IndexSequence< Idx... > >::Apply ( F &&  f) const -> decltype(std::forward<F>(f)(this->Get<Idx>()...))
inline

Definition at line 1261 of file gtest-internal.h.

1261 {
1262 return std::forward<F>(f)(Get<Idx>()...);
1263 }

◆ Get() [1/2]

template<size_t... Idx, typename... T>
template<size_t I>
ElemFromList< I, T... >::type & testing::internal::FlatTupleBase< FlatTuple< T... >, IndexSequence< Idx... > >::Get ( )
inline

Definition at line 1251 of file gtest-internal.h.

1251 {
1252 return FlatTupleElemBase<FlatTuple<T...>, I>::value;
1253 }
int value

◆ Get() [2/2]

template<size_t... Idx, typename... T>
template<size_t I>
const ElemFromList< I, T... >::type & testing::internal::FlatTupleBase< FlatTuple< T... >, IndexSequence< Idx... > >::Get ( ) const
inline

Definition at line 1246 of file gtest-internal.h.

1246 {
1247 return FlatTupleElemBase<FlatTuple<T...>, I>::value;
1248 }

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