Dune::AlignmentOf< T > Struct Template Reference
[Common (foundation classes)]

Calculates the alignment requirement of a type. More...

#include <dune/common/alignment.hh>

List of all members.

Public Types

enum  { value = AlignmentTester<T, sizeof = (AlignmentStruct<T>) - sizeof(T) -1>::result }

Detailed Description

template<class T>
struct Dune::AlignmentOf< T >

Calculates the alignment requirement of a type.

See also:
http://en.wikipedia.org/wiki/Data_structure_alignment

This will be a safe value and not an optimal one. If TR1 is available it falls back to std::alignment_of.


Member Enumeration Documentation

template<class T >
anonymous enum
Enumerator:
value 

The alignment requirement.

sizeof 

The documentation for this struct was generated from the following file:
Generated on Mon Apr 26 10:45:23 2010 for dune-common by  doxygen 1.6.3