Dune Core Modules (2.5.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
10namespace Dune
11{
12
32 template <class T>
34 {
35
36 enum
37 {
39 value = std::alignment_of<T>::value
40 };
41 };
42
44}
45#endif
Dune namespace.
Definition: alignment.hh:11
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.111.3 (Nov 23, 23:29, 2024)