|
cds
2.3.2
|
Automatic alignment type T to AlignFactor.
More...
#include <cds/details/type_padding.h>
Public Types | |
| enum | |
| Align factor. | |
| enum | { value = type::value } |
| Padding constant. | |
| typedef type_padding_helper< T, align_factor, sizeof(T) % align_factor > | type |
| Result type. | |
Automatic alignment type T to AlignFactor.
The class adds appropriate bytes to type T that the following condition is true:
It is guaranteed that count of padding bytes no more than AlignFactor - 1.
Applicability: type T must not have constructors another that default ctor. For example, T may be any POD type.