Light-weight fixed-length Array class with index-checking.
More...
#include <_src_base_array_tiny.hh>
List of all members.
Detailed Description
template<uint COUNT, typename T = int>
class base::TinyArray< COUNT, T >
Light-weight fixed-length Array class with index-checking.
Meant for small arrays. Auto-destroys itself. TinyArray is smaller/faster than STL vector but its size is fixed. If instantiated on a function, TinyArray will be stored on call stack. The size of the array is part of TinyArray's type. Tested by base/tests/basic_types.cc.
Member Typedef Documentation
template<uint COUNT, typename T = int>
Constructor & Destructor Documentation
template<uint COUNT, typename T = int>
Template arg count implicitly defines the array's length.
template<uint COUNT, typename T = int>
Construct all elements with the same value.
template<uint COUNT, typename T = int>
template<uint COUNT, typename T = int>
Member Function Documentation
template<uint COUNT, typename T = int>
template<uint COUNT, typename T = int>
template<uint COUNT, typename T = int>
Assign every element the same value.
template<uint COUNT, typename T = int>
- Returns:
- Amount of elements.
template<uint COUNT, typename T = int>
template<uint COUNT, typename T = int>
template<uint COUNT, typename T = int>
Amazing that a C++ compiler will accept how this type is written.
template<uint COUNT, typename T = int>
template<uint COUNT, typename T = int>
template<uint COUNT, typename T = int>
Catching access to an uninitialized element would be ideal but there's no way to tell if the element is being read or written.
template<uint COUNT, typename T = int>
template<uint COUNT, typename T = int>
Limited STL compatibility. Obviously, resize() omitted.
Member Data Documentation
template<uint COUNT, typename T = int>
The documentation for this class was generated from the following file: