Dune Core Modules (2.6.0)

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
Dune namespace.
Definition: alignedallocator.hh:10
Calculates the alignment requirement of a type.
Definition: alignment.hh:34
@ value
The alignment requirement.
Definition: alignment.hh:39
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.80.0 (Mar 28, 23:30, 2024)