LoAdSG
|
A simple vector implementation so as not to rely on the standard library implementation. This implementation has some of the same methods as the standard library. More...
#include <simpleMultiHash.h>
Public Member Functions | |
~SimpleVector () | |
Destroy the Simple Vector object. | |
SimpleVector (const SimpleVector &other) | |
copy constructor. | |
SimpleVector (SimpleVector &&other) noexcept | |
move constructor | |
SimpleVector & | operator= (const SimpleVector &other) |
copy assignment | |
SimpleVector & | operator= (SimpleVector &&other) noexcept |
move assignment | |
T & | at (size_t i) |
Array access with error checking. | |
Private Attributes | |
size_t | _capacity |
reserved capacity for this vector. Always bigger or euqal to size | |
size_t | _size |
current number of elements in the Vector | |
A simple vector implementation so as not to rely on the standard library implementation. This implementation has some of the same methods as the standard library.
T |
|
inline |
copy constructor.
other |
|
inlinenoexcept |
move constructor
other |
|
inline |
Array access with error checking.
out_of_range |
i |
|
inline |
|
inlinenoexcept |