Caffe2 - C++ API
A deep learning, cross platform ML framework
Data Fields
c10::AlignedCharArray< Alignment, Size > Struct Template Reference

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

#include <AlignOf.h>

Data Fields

char buffer [Size]
 

Detailed Description

template<size_t Alignment, size_t Size>
struct c10::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 37 of file AlignOf.h.


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