WPILibC++  2019.3.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
wpi::AlignedCharArray< Alignment, Size > Struct Template Reference

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

#include <AlignOf.h>

Public Member Functions

 LLVM_ALIGNAS (Alignment) char buffer[Size]
 

Detailed Description

template<std::size_t Alignment, std::size_t Size>
struct wpi::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.


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