vSMC  v3.0.0
Scalable Monte Carlo
vsmc::AlignmentTrait< T > Class Template Reference

Alignment of a given type. More...

#include <vsmc/utility/aligned_memory.hpp>

Detailed Description

template<typename T>
class vsmc::AlignmentTrait< T >

Alignment of a given type.

For scalar type, such as double, value is VSMC_ALIGNMENT, which shall be big enough for SIME aligned operations. For other types, it return VSMC_ALIGNMENT_MIN if alignof(T) is smaller, otherwise alignof(T).

Definition at line 161 of file aligned_memory.hpp.