LLVM  3.7.0
Public Types | Static Public Attributes | List of all members
llvm::AlignOf< T > Struct Template Reference

AlignOf - A templated class that contains an enum value representing the alignment of the template argument. More...

#include <AlignOf.h>

Collaboration diagram for llvm::AlignOf< T >:
[legend]

Public Types

enum  
 
enum  
 
enum  
 
enum  
 
enum  
 
enum  
 
enum  
 
enum  
 

Static Public Attributes

static constexpr unsigned Alignment
 

Detailed Description

template<typename T>
struct llvm::AlignOf< T >

AlignOf - 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).

Definition at line 46 of file AlignOf.h.

Member Enumeration Documentation

template<typename T >
anonymous enum

Definition at line 61 of file AlignOf.h.

template<typename T >
anonymous enum

Definition at line 62 of file AlignOf.h.

template<typename T >
anonymous enum

Definition at line 64 of file AlignOf.h.

template<typename T >
anonymous enum

Definition at line 65 of file AlignOf.h.

template<typename T >
anonymous enum

Definition at line 66 of file AlignOf.h.

template<typename T >
anonymous enum

Definition at line 67 of file AlignOf.h.

template<typename T >
anonymous enum

Definition at line 59 of file AlignOf.h.

template<typename T >
anonymous enum

Definition at line 60 of file AlignOf.h.

Member Data Documentation

template<typename T >
constexpr unsigned llvm::AlignOf< T >::Alignment
static
Initial value:
=
static_cast<unsigned int>(sizeof(AlignmentCalcImpl<T>) - sizeof(T))

Definition at line 53 of file AlignOf.h.


The documentation for this struct was generated from the following file: