![]() |
Dune-Functions 2.12-git
|
Loading...
Searching...
No Matches
utility.hh
Go to the documentation of this file.
100 auto transformTupleHelper(F&& f, const std::tuple<T1...>& tuple1, const std::tuple<T2...>& tuple2, std::index_sequence<k...>)
121 -> decltype(Imp::transformTupleHelper(std::forward<F>(f), tuple, std::index_sequence_for<T...>{}))
141 -> decltype(Imp::transformTupleHelper(std::forward<F>(f), tuple1, tuple2, std::index_sequence_for<T1...>{}))
143 return Imp::transformTupleHelper(std::forward<F>(f), tuple1, tuple2, std::index_sequence_for<T1...>{});
191 using type = typename std::tuple<typename LastType<T...>::type, std::tuple_element_t<I,std::tuple<T...>>...>;
207 using type = typename Imp::RotateHelper<std::tuple<T...>, std::make_index_sequence<sizeof...(T)-1>>::type;
typename Imp::ExpandTupleHelper< T, ArgTuple >::Type ExpandTuple
Expand tuple arguments as template arguments.
Definition utility.hh:49
typename Imp::TransformTupleHelper< F, Tuples... >::Type TransformTuple
Transform tuple types argument using type-functor.
Definition utility.hh:86
static constexpr auto isCallable()
Check if f is callable with given argument list.
Definition functionconcepts.hh:51
auto transformTuple(F &&f, const std::tuple< T... > &tuple) -> decltype(Imp::transformTupleHelper(std::forward< F >(f), tuple, std::index_sequence_for< T... >{}))
Transform tuple value using a functor.
Definition utility.hh:120
auto callableCheck(Expression f)
Create a predicate for checking validity of expressions.
Definition utility.hh:234
auto negatePredicate(Check check)
Negate given predicate.
Definition utility.hh:259
STL namespace.
auto forwardCapture(T &&t)
Create a capture object for perfect forwarding.
Definition utility.hh:327
typename Imp::IntegerSequenceTupleHelper< IntegerSequence >::Type IntegerSequenceTuple
Transform integer_sequence<I,k...> to tuple<integral_constant<I,k>...>
Definition utility.hh:166
auto overload(F &&... f)
std::tuple_element_t< sizeof...(T) -1, std::tuple< T... > > type
Definition utility.hh:178
Rotate type list by one, such that last entry is moved to first position.
Definition utility.hh:206
typename Imp::RotateHelper< std::tuple< T... >, std::make_index_sequence< sizeof...(T) -1 > >::type type
Definition utility.hh:207
T forward(T... args)
T make_tuple(T... args)
