template<typename T, size_t ChunkSize, size_t MaxChunks>
class nix::ChunkedVector< T, ChunkSize, MaxChunks >
Provides an indexable container like vector<> with memory overhead guarantees like list<> by allocating storage in chunks of ChunkSize elements instead of using a contiguous memory allocation like vector<> does. Not using a single vector that is resized reduces memory overhead on large data sets by on average (growth factor)/2, mostly eliminates copies within the vector during resizing, and provides stable references to its elements.
Thread-safe to append and read concurrently. Caps the maximum number of chunks to MaxChunks for ease of implementation.