WPILibC++  2020.3.2-60-g3011ebe
wpi::AlignedCharArray< Alignment, Size > Struct Template Reference

#include <AlignOf.h>

Public Attributes

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: