dune-common  2.6-git
utility.hh
Go to the documentation of this file.
1 #ifndef DUNE_COMMON_STD_UTILITY_HH
2 #define DUNE_COMMON_STD_UTILITY_HH
3 
4 #include <cstddef>
5 
6 #include <type_traits>
7 #include <utility>
8 
10 
11 namespace Dune
12 {
13 
14  namespace Std
15  {
16 
17 
18  using std::integer_sequence;
19  using std::index_sequence;
20  using std::make_integer_sequence;
21  using std::make_index_sequence;
22 
37  template<typename... T>
38  using index_sequence_for = make_index_sequence<typename Dune::SizeOf<T...>{}>;
39 
40 
41 
42  } // namespace Std
43 
44 } // namespace Dune
45 
46 #endif // #ifndef DUNE_COMMON_STD_UTILITY_HH
make_index_sequence< typename Dune::SizeOf< T... >{}> index_sequence_for
Create index_sequence from 0 to sizeof...(T)-1.
Definition: utility.hh:38
Compute size of variadic type list.
Definition: typetraits.hh:458
Dune namespace.
Definition: alignedallocator.hh:9
Traits for type conversions and type information.