|
| | b8array (ArrayOptions::InitializationOption option=ArrayOptions::NoFill) |
| | Construct a new b8array.
|
| |
| | b8array (std::initializer_list< T > il) |
| | Construct a new b8array with an initializer list.
|
| |
| | b8array (const b8array &obj) |
| | Copy constructor for b8array.
|
| |
| b8array & | operator= (const b8array &obj) |
| | Copy assignment operator.
|
| |
|
| ~b8array () |
| | Destructor to release allocated memory.
|
| |
| bool | empty () const |
| | Check if the array is empty.
|
| |
| T * | begin () |
| | Get an iterator pointing to the first element.
|
| |
| const T * | cbegin () const |
| | Get a const iterator pointing to the first element.
|
| |
| const T * | cend () const |
| | Get a const iterator pointing to one past the last element.
|
| |
| T * | end () |
| | Get an iterator pointing to one past the last element.
|
| |
| const T * | begin () const |
| | Get a const iterator pointing to the first element.
|
| |
| const T * | end () const |
| | Get a const iterator pointing to one past the last element.
|
| |
| T * | erase (T *it_) |
| | Erase an element from the array.
|
| |
|
void | clear () |
| | Clear the contents of the array.
|
| |
| size_t | size () const |
| | Get the number of elements in the array.
|
| |
| void | push_back (const T &x_) |
| | Add an element to the end of the array.
|
| |
| T & | at (int n_) |
| | Access element at a specific position.
|
| |
| const T & | at (int n_) const |
| | Access element at a specific position (const version).
|
| |
| T & | operator[] (int n_) |
| | Overload array subscript operator for non-const objects.
|
| |
| const T & | operator[] (int n_) const |
| | Overload array subscript operator for const objects.
|
| |
template<typename T, size_t Capacity>
class b8array< T, Capacity >
A fixed-size array with custom behavior for element initialization.
- Template Parameters
-
| T | Type of the elements. |
| Capacity | Maximum number of elements the array can hold. |