LLGL 0.05 Beta
Loading...
Searching...
No Matches
LLGL::AlignedArray< T, Size > Class Template Reference

Alternative to std::aligned_storage but with support for zero length array. More...

#include <AlignedArray.h>

Public Types

using pointer = T*
using const_pointer = const T*
using size_type = std::size_t

Public Member Functions

size_type size () const noexcept
 Returns the static size of this array provided by the template argument Size.
pointer data () noexcept
 Returns a pointer to the aligned array.
const_pointer data () const noexcept
 Returns a constant pointer to the aligned array.

Detailed Description

template<typename T, std::size_t Size>
class LLGL::AlignedArray< T, Size >

Alternative to std::aligned_storage but with support for zero length array.

Template Parameters
Tspecifies the element type and the aligned of this array.
SizeSpecifies the size (in elements) of this array.

Member Typedef Documentation

◆ const_pointer

template<typename T, std::size_t Size>
using LLGL::AlignedArray< T, Size >::const_pointer = const T*

◆ pointer

template<typename T, std::size_t Size>
using LLGL::AlignedArray< T, Size >::pointer = T*

◆ size_type

template<typename T, std::size_t Size>
using LLGL::AlignedArray< T, Size >::size_type = std::size_t

Member Function Documentation

◆ data() [1/2]

template<typename T, std::size_t Size>
const_pointer LLGL::AlignedArray< T, Size >::data ( ) const
inlinenoexcept

Returns a constant pointer to the aligned array.

◆ data() [2/2]

template<typename T, std::size_t Size>
pointer LLGL::AlignedArray< T, Size >::data ( )
inlinenoexcept

Returns a pointer to the aligned array.

◆ size()

template<typename T, std::size_t Size>
size_type LLGL::AlignedArray< T, Size >::size ( ) const
inlinenoexcept

Returns the static size of this array provided by the template argument Size.


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