dune-common  2.5.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
alignment.hh
Go to the documentation of this file.
1 // -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 // vi: set et ts=4 sw=2 sts=2:
3 #ifndef DUNE_ALIGNMENT_HH
4 #define DUNE_ALIGNMENT_HH
5 
6 #warning The header dune/common/alignment.hh is deprecated. Use alignof(T) instead of Dune::AlignmentOf<T>::value.
7 
8 #include <type_traits>
9 
10 namespace Dune
11 {
12 
32  template <class T>
33  struct AlignmentOf
34  {
35 
36  enum
37  {
39  value = std::alignment_of<T>::value
40  };
41  };
42 
44 }
45 #endif
The alignment requirement.
Definition: alignment.hh:39
Calculates the alignment requirement of a type.
Definition: alignment.hh:33