Monday, 15 June 2015

C++: Vector of fixed but runtime defined length arrays -



C++: Vector of fixed but runtime defined length arrays -

i know can utilize

std::vector<std::array<int, 20> > myvec;

as container matrix growable in single dimension. std:array<> size has defined in compile time. there simple way how same runtime defined arrays?

i need processing several gb of info i'm affraid vector of vectors bring in unnecessary overhead.

i need processing several gb of info i'm affraid vector of vectors bring in unnecessary overhead.

then write wrapper class around 1 dimensional vector allows two-dimensional indexing, , give 1 fixed dimension constructor-argument.

that efficient way, since there 1 level of indirection.

c++ arrays vector

No comments:

Post a Comment