WPILibC++  unspecified
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>

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

Member Data Documentation

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

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