![]() |
Flecs v4.1
A fast entity component system (ECS) for C & C++
|
Array class specialization for non-zero sizes. More...
#include <array.hpp>
Public Member Functions | |
| array () | |
| Default constructor. | |
| array (const T(&elems)[Size]) | |
| Construct from a C array. | |
| T & | operator[] (int index) |
| Element access by int index. | |
| T & | operator[] (size_t index) |
| Element access by size_t index. | |
| array_iterator< T > | begin () |
| Return an iterator to the beginning. | |
| array_iterator< T > | end () |
| Return an iterator to the end. | |
| size_t | size () |
| Return the number of elements. | |
| T * | ptr () |
| Return a pointer to the underlying data. | |
| template<typename Func> | |
| void | each (const Func &func) |
| Invoke a function for each element. | |
Array class specialization for non-zero sizes.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |