Open 3D Engine AzCore API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AZStd::array< T, N > Class Template Reference

#include <array.h>

Public Types

enum  { array_size = N }
 
typedef T * pointer
 
typedef const T * const_pointer
 
typedef T & reference
 
typedef const T & const_reference
 
typedef ptrdiff_t difference_type
 
typedef size_t size_type
 
typedef pointer iterator
 
typedef const_pointer const_iterator
 
typedef AZStd::reverse_iterator< iterator > reverse_iterator
 
typedef AZStd::reverse_iterator< const_iterator > const_reverse_iterator
 
typedef T value_type
 
typedef value_type node_type
 

Public Member Functions

constexpr iterator begin ()
 
constexpr const_iterator begin () const
 
constexpr iterator end ()
 
constexpr const_iterator end () const
 
constexpr reverse_iterator rbegin ()
 
constexpr const_reverse_iterator rbegin () const
 
constexpr reverse_iterator rend ()
 
constexpr const_reverse_iterator rend () const
 
constexpr const_iterator cbegin () const
 
constexpr const_iterator cend () const
 
constexpr const_reverse_iterator crbegin () const
 
constexpr const_reverse_iterator crend () const
 
constexpr reference front ()
 
constexpr const_reference front () const
 
constexpr reference back ()
 
constexpr const_reference back () const
 
constexpr reference operator[] (size_type i)
 
constexpr const_reference operator[] (size_type i) const
 
constexpr reference at (size_type i)
 
constexpr const_reference at (size_type i) const
 
void swap (this_type &other)
 
constexpr const T * data () const
 
constexpr T * data ()
 
template<typename T2 >
constexpr array< T, N > & operator= (const array< T2, N > &rhs)
 
constexpr void fill (const T &value)
 
constexpr bool validate () const
 
constexpr int validate_iterator (const iterator &iter) const
 

Static Public Member Functions

static constexpr size_type size ()
 
static constexpr bool empty ()
 
static constexpr size_type max_size ()
 

Public Attributes

m_elements [N]
 

Detailed Description

template<class T, size_t N>
class AZStd::array< T, N >

Array container is complaint with CTR1 (6.2.2) It's just a static array container. You are allowed to initialize it like C array: array<int,5> myData = {{1,2,3,4,5}}; Check the array AZStdExamples.


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