|
dune-common 2.12-git
|
Loading...
Searching...
No Matches
tupleutility.hh
Go to the documentation of this file.
3// SPDX-FileCopyrightInfo: Copyright © DUNE Project contributors, see file LICENSE.md in module root
126 inline auto genericTransformTupleBackendImpl(Tuple& t, Functor& f, const std::index_sequence<I...>& )
Traits for type conversions and type information.
decltype(auto) applyPartial(F &&f, ArgTuple &&args, std::integer_sequence< I, i... >)
Apply function with arguments from a given tuple.
Definition tupleutility.hh:42
std::add_const< T >::type & ConstType
Definition tupleutility.hh:50
static void apply(std::tuple< Ts... > &t)
Definition tupleutility.hh:382
auto transformTuple(Tuple &&orig, Args &&... args) -> decltype(genericTransformTuple(orig, makeTransformTupleFunctor< TypeEvaluator >(args...)))
Definition tupleutility.hh:292
ReduceTuple< F, Tuple, Seed, N-1 >::type Accumulated
Definition tupleutility.hh:518
Seed type
Result of the reduce operation.
Definition tupleutility.hh:542
std::remove_reference< T >::type * Type
Definition tupleutility.hh:321
static ResultType apply()
Definition tupleutility.hh:85
std::tuple< Args... > ResultType
Definition tupleutility.hh:84
std::remove_reference< T >::type * Type
Definition tupleutility.hh:332
TransformTupleFunctor(Args &&... args)
Definition tupleutility.hh:241
std::tuple_element< std::tuple_size< Tuple >::value-N-1, Tuple >::type Type
Definition tupleutility.hh:347
auto operator()(T &&t) -> decltype(this->apply(t, std::index_sequence_for< Args... >{})) const
Definition tupleutility.hh:246
static TupleAccessTraits< typenameAtType< N, Tuple >::Type >::ConstType get(const Tuple &t)
Definition tupleutility.hh:369
static TupleAccessTraits< typenameAtType< N, Tuple >::Type >::NonConstType get(Tuple &t)
Definition tupleutility.hh:362
std::tuple< Args..., T > type
Definition tupleutility.hh:481
std::tuple< T, Args... > type
Definition tupleutility.hh:496
ReduceTuple< JoinTuples, Tuple >::type type
Result of the flatten operation.
Definition tupleutility.hh:573
F< Accumulated, Value >::type type
Result of the reduce operation.
Definition tupleutility.hh:522
ReduceTuple< PushBackTuple, Tail, Head >::type type
Result of the join operation.
Definition tupleutility.hh:558
std::tuple< typename TE< Args >::Type... > Type
Definition tupleutility.hh:121
auto genericTransformTuple(Tuple &&t, Functor &&f) -> decltype(genericTransformTupleBackend(t, f))
Definition tupleutility.hh:186
const std::remove_const< T >::type & ParameterType
Definition tupleutility.hh:52
std::add_const< T >::type * ConstType
Definition tupleutility.hh:58
TransformTupleFunctor< TE, Args... > makeTransformTupleFunctor(Args &&... args)
Definition tupleutility.hh:254
constexpr void forEach(Range &&range, F &&f)
Range based for loop.
Definition hybridutilities.hh:261
STL namespace.
constexpr std::integral_constant< std::size_t, sizeof...(II)> size(std::integer_sequence< T, II... >)
Return the size of the sequence.
Definition integersequence.hh:75
Definition tupleutility.hh:49
A helper template that initializes a std::tuple consisting of pointers to nullptr.
Definition tupleutility.hh:79
Helper template to clone the type definition of a std::tuple with the storage types replaced by a use...
Definition tupleutility.hh:116
Definition tupleutility.hh:226
Definition tupleutility.hh:239
TypeEvaluator to turn a type T into a reference to T
Definition tupleutility.hh:305
TypeEvaluator to turn a type T into a pointer to T
Definition tupleutility.hh:320
Deletes all objects pointed to in a std::tuple of pointers.
Definition tupleutility.hh:380
Finding the index of a certain type in a std::tuple.
Definition tupleutility.hh:418
Find the first occurrence of a type in a std::tuple.
Definition tupleutility.hh:467
Helper template to prepend a type to a std::tuple.
Definition tupleutility.hh:491
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8