LLVM  8.0.1
Public Attributes | List of all members
llvm::AlignedCharArray< Alignment, Size > Struct Template Reference

Helper for building an aligned character array type. More...

#include "llvm/Support/AlignOf.h"

Collaboration diagram for llvm::AlignedCharArray< Alignment, Size >:
Collaboration graph
[legend]

Public Attributes

char buffer [Size]
 

Detailed Description

template<std::size_t Alignment, std::size_t Size>
struct llvm::AlignedCharArray< Alignment, Size >

Helper for building an aligned character array type.

This template is used to explicitly build up a collection of aligned character array types. We have to build these up using a macro and explicit specialization to cope with MSVC (at least till 2015) where only an integer literal can be used to specify an alignment constraint. Once built up here, we can then begin to indirect between these using normal C++ template parameters.

Definition at line 36 of file AlignOf.h.

Member Data Documentation

◆ buffer

template<std::size_t Alignment, std::size_t Size>
char llvm::AlignedCharArray< Alignment, Size >::buffer[Size]

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