dune-common
2.6-git
dune
common
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
Dune namespace.
Definition:
alignedallocator.hh:9
Dune::AlignmentOf
Calculates the alignment requirement of a type.
Definition:
alignment.hh:33
Dune::AlignmentOf::value
@ value
The alignment requirement.
Definition:
alignment.hh:39
Generated by
1.8.17