|
dune-fem 2.12-git
|
Loading...
Searching...
No Matches
tupleutility.hh
Go to the documentation of this file.
22 static_assert( (begin+length <= std::tuple_size< Tuple >::value), "Can not cut out tuple of given length" );
23 typedef typename Dune::PushBackTuple< StartType, std::tuple_element< begin, Tuple > >::type NextType;
161 static const bool value = ( std::is_same< typename std::tuple_element< N-1, Tuple >::type, Type >::value
void seed(const Vertex &vertex)
int size() const
iterator begin()
static constexpr size_type N()
std::ptrdiff_t index() const
auto tuple_pop_front_impl(const Tup &tup, const std::index_sequence< I... > &) -> decltype(std::make_tuple(std::get< I >(tup)...))
Definition tupleutility.hh:131
auto tuple_pop_front(const std::tuple< T, Args... > &tup) -> decltype(tuple_pop_front_impl(tup, std::make_index_sequence< sizeof...(Args) >()))
Definition tupleutility.hh:138
std::tuple< Args..., T > tuple_push_back(const std::tuple< Args... > &tup, T t)
Definition tupleutility.hh:90
auto tuple_pop_back_impl(const Tup &tup, const std::index_sequence< I... > &) -> decltype(std::make_tuple(std::get< I >(tup)...))
Definition tupleutility.hh:112
std::tuple< T, Args... > tuple_push_front(const std::tuple< Args... > &tup, T t)
Definition tupleutility.hh:101
auto tuple_pop_back(const std::tuple< T, Args... > &tup) -> decltype(tuple_pop_back_impl(tup, std::make_index_sequence< sizeof...(Args) >()))
Definition tupleutility.hh:119
Definition tupleutility.hh:47
CutOutTuple< Tuple, 1,(std::tuple_size< Tuple >::value-1)>::type type
Definition tupleutility.hh:53
Definition tupleutility.hh:69
CutOutTuple< Tuple, 0,(std::tuple_size< Tuple >::value-1)>::type type
Definition tupleutility.hh:75
Definition tupleutility.hh:160
Definition tupleutility.hh:188
FirstTypeIndexTuple< Tuple, SubTuple, NextSeed,(index+1)>::type type
Definition tupleutility.hh:203
Seed type
Definition tupleutility.hh:213
Definition tupleutility.hh:231
static type apply(Tuple &)
Definition tupleutility.hh:274
Seed type
Definition tupleutility.hh:272
wrapper class to convert a vector of tuples of RangeTypes into something that behaves like a vector< ...
Definition tupleutility.hh:287
size_t size() const
return size of vector
Definition tupleutility.hh:317
std::tuple_element< pos, TupleType >::type ValueType
Definition tupleutility.hh:292
TupleToVectorConverter(const TupleToVectorConverter &)=delete
TupleToVectorConverter(VectorTupleType &vector)
constructor
Definition tupleutility.hh:296
ValueType & operator[](const size_t i)
return reference to i-th entry of vector and pos's tuple component
Definition tupleutility.hh:301
VectorTupleType::value_type TupleType
Definition tupleutility.hh:291
Instantiate a tuple of elements with identical, simple constructors.
Definition tupleutility.hh:348
static Tuple apply(const Key &key=Key())
create tuple instance
Definition tupleutility.hh:353
static Tuple apply(const Key &key=Key())
Definition tupleutility.hh:377
T forward(T... args)
T make_tuple(T... args)
T tuple_cat(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8