BEEP-8 Helper Lib 1.0.0
|
Header file for the b8array class. More...
Go to the source code of this file.
Classes | |
class | b8array< T, Capacity > |
A fixed-size array with custom behavior for element initialization. More... | |
Enumerations | |
enum | ArrayOptions::InitializationOption { ArrayOptions::Fill , ArrayOptions::NoFill } |
Enum for specifying array initialization options. More... | |
Header file for the b8array class.
This header defines a template class b8array
that represents a fixed-size array with custom behavior for element initialization. The class supports basic functionalities such as adding elements, accessing elements, and iterating over the array. Additionally, it provides options for initializing the array with default-constructed elements.
Suppose we have a custom class MyClass
defined as follows:
We can use the b8array
class with MyClass
in a similar way: