template<class ElementType, Int32 Size>
class ConceptRT::SafeArray< ElementType, Size >
Array ensures safe usage.
The bounds of the given index is systematically checked in order to avoid memory corruption in any use case.
- Template Parameters
-
ElementType | Array items type. Items must be instanciable whitout parameters. (scalar type or class with constructor without parameters or with default values.) |
Size | Array size |
If the element type has no constructor (simple scalar value) items are not initialized. Use SmartType like SmartBool in this case.
- Examples:
- ErrorsManagement/main.cpp.