Nazara Engine  0.4
A fast, complete, cross-platform API designed for game development
Nz::StackArray< T > Class Template Reference

Core class that represents a stack-allocated (if alloca is present) array. More...

Public Types

using value_type = T
 
using const_iterator = const value_type *
 
using const_pointer = const value_type *
 
using const_reference = const value_type &
 
using const_reverse_iterator = std::reverse_iterator< const_iterator >
 
using difference_type = std::ptrdiff_t
 
using iterator = value_type *
 
using pointer = value_type *
 
using reference = value_type &
 
using reverse_iterator = std::reverse_iterator< iterator >
 
using size_type = std::size_t
 

Public Member Functions

 StackArray (T *stackMemory, std::size_t size)
 
 StackArray (T *stackMemory, std::size_t size, NoInitTag)
 
reference back ()
 
const_reference back () const
 
iterator begin () noexcept
 
const_iterator begin () const noexcept
 
const_iterator cbegin () const noexcept
 
const_iterator cend () const noexcept
 
const_reverse_iterator crbegin () const noexcept
 
const_reverse_iterator crend () const noexcept
 
T * data () noexcept
 
const T * data () const noexcept
 
bool empty () const noexcept
 
iterator end () noexcept
 
const_iterator end () const noexcept
 
void fill (const T &value)
 
reference front () noexcept
 
const_reference front () const noexcept
 
size_type max_size () const noexcept
 
reverse_iterator rbegin () noexcept
 
const_reverse_iterator rbegin () const noexcept
 
reverse_iterator rend () noexcept
 
const_reverse_iterator rend () const noexcept
 
size_type size () const noexcept
 
reference operator[] (size_type pos)
 
const_reference operator[] (size_type pos) const
 

Detailed Description

template<typename T>
class Nz::StackArray< T >

Core class that represents a stack-allocated (if alloca is present) array.


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