VISH
0.2
|
A convenience class that looks like a std::vector<>, but is actually referring to a reference-counted common chunk of data. More...
#include </home/werner/origo/vish/memcore/Chunk.hpp>
A convenience class that looks like a std::vector<>, but is actually referring to a reference-counted common chunk of data.
It can be used like many std::vector<>'s sharing their data storage. Otherwise, nothing special here.
MemCore::MemVector::MemVector | ( | size_t | nElements, |
bool | ReserveOnly = false |
||
) | [inline] |
Allocate vector by giving number of elements Resizing the vector is no problem, all shared instances will see changes immediatly.
ReserveOnly | Tells if the vector shall be initialized with no elements, but reserved to hold the given number of elements. This is useful when new elements are added via push_back(). |