Photon Common Library 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
ph::TAlignedArray< T, N, ALIGNMENT_IN_BYTES > Struct Template Reference

Aligned version of std::array. This type shares the same traits as std::array. [class.mem] section 20 (https://timsong-cpp.github.io/cppwp/n3337/class.mem#20) supports that the alignment can pass through to the inherited std::array as long as the derived type is also a standard-layout type. More...

#include <memory.h>

Inheritance diagram for ph::TAlignedArray< T, N, ALIGNMENT_IN_BYTES >:

Static Public Attributes

static constexpr std::size_t ALIGNMENT = ALIGNMENT_IN_BYTES
 

Detailed Description

template<typename T, std::size_t N, std::size_t ALIGNMENT_IN_BYTES = sizeof(T)>
struct ph::TAlignedArray< T, N, ALIGNMENT_IN_BYTES >

Aligned version of std::array. This type shares the same traits as std::array. [class.mem] section 20 (https://timsong-cpp.github.io/cppwp/n3337/class.mem#20) supports that the alignment can pass through to the inherited std::array as long as the derived type is also a standard-layout type.

Member Data Documentation

◆ ALIGNMENT

template<typename T , std::size_t N, std::size_t ALIGNMENT_IN_BYTES = sizeof(T)>
std::size_t ph::TAlignedArray< T, N, ALIGNMENT_IN_BYTES >::ALIGNMENT = ALIGNMENT_IN_BYTES
inlinestaticconstexpr

The alignment (in bytes) of this array.


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