Open 3D Engine AzCore API Reference  24.09
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

constexpr static size_type size ()
 
constexpr static bool empty ()
 
constexpr static 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.

Forward declare of a C++20 compliant array class


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