Struct Poco::AlignOf
Author: Applied Informatics Software Engineering GmbH and Contributors

# Poco

# template < typename T >

# struct AlignOf

Library: Foundation
Package: Dynamic
Header: Poco/Alignment.h

## Description

A templated class that contains an enum value representing the alignment of the template argument. For example, AlignOf<int>::Alignment represents the alignment of type "int". The alignment calculated is the minimum alignment, and not necessarily the "desired" alignment returned by GCC's __alignof__ (for example). Note that because the alignment is an enum value, it can be used as a compile-time constant (e.g., for template instantiation).

## Enumerations

### Anonymous

Alignment = static_cast < unsigned int > (sizeof (AlignmentCalcImpl < T >)- sizeof (T))

### Anonymous

Alignment_GreaterEqual_2Bytes = Alignment >= 2 ? 1 :0

### Anonymous

Alignment_GreaterEqual_4Bytes = Alignment >= 4 ? 1 :0

### Anonymous

Alignment_GreaterEqual_8Bytes = Alignment >= 8 ? 1 :0

### Anonymous

Alignment_GreaterEqual_16Bytes = Alignment >= 16 ? 1 :0

### Anonymous

Alignment_LessEqual_2Bytes = Alignment <= 2 ? 1 :0

### Anonymous

Alignment_LessEqual_4Bytes = Alignment <= 4 ? 1 :0

### Anonymous

Alignment_LessEqual_8Bytes = Alignment <= 8 ? 1 :0

### Anonymous

Alignment_LessEqual_16Bytes = Alignment <= 16 ? 1 :0