dune-common  2.4
Classes | Namespaces | Macros
alignment.hh File Reference

This file implements a template class to determine alignment requirements of types at compile time. More...

#include <cstddef>
#include <type_traits>

Go to the source code of this file.

Classes

struct  Dune::AlignmentOf< T >
 Calculates the alignment requirement of a type. More...
 

Namespaces

 Dune
 Dune namespace.
 

Macros

#define ALIGNMENT_MODULO(a, b)
 
#define ALIGNMENT_MIN(a, b)
 

Detailed Description

This file implements a template class to determine alignment requirements of types at compile time.

Author
Markus Blatt

Macro Definition Documentation

#define ALIGNMENT_MIN (   a,
 
)
Value:
(static_cast<std::size_t>(a) < \
static_cast<std::size_t>(b) ? \
static_cast<std::size_t>(a) : \
static_cast<std::size_t>(b))
#define ALIGNMENT_MODULO (   a,
 
)
Value:
(a % b == 0 ? \
static_cast<std::size_t>(b) : \
static_cast<std::size_t>(a % b))

Variable Documentation

char c
char padding1[N]
char padding2[N2]
T t