Include file:
#include "mcrl2/utilities/stack_array.h
mcrl2::utilities::
stack_array
¶Provides (a subset of) the interface of std::array<T> for a portion of preallocated memory. Can be used to interface with a portion of memory allocated on the stack,.
MCRL2_DECLARE_STACK_ARRAY. The advantage over MCRL2_SPECIFIC_STACK_ALLOCATOR is that the lifetime of the underlying objects is bounded by the lifetime of the stack_array.
mcrl2::utilities::stack_array::
const_iterator
¶typedef for const T *
mcrl2::utilities::stack_array::
const_reverse_iterator
¶typedef for std::reverse_iterator< const_iterator >
mcrl2::utilities::stack_array::
iterator
¶typedef for T *
mcrl2::utilities::stack_array::
reverse_iterator
¶typedef for std::reverse_iterator< iterator >
mcrl2::utilities::stack_array::
m_reserved_memory
¶mcrl2::utilities::stack_array::
m_size
¶begin
()begin
() constdata
()data
() constempty
() constend
()end
() constmax_size
() constoperator[]
(std::size_t index)rbegin
()rbegin
() constrend
()rend
() constsize
() conststack_array
(T *reserved_memory, std::size_t N)¶The given pointer should be able to hold N element of sizeof(T) bytes.
~stack_array
()¶