I know how to get the size of a static array etc, but my problem is that I can't get the size of an array of vectors defined like that:
vector<int> * grid = new vector<int> [pixels_num];
Since the size of each element of this size differs how can I get even the first dimension's length (in other words how many vectors there are in this array). My final goal is to compute the total length of this array (that is how many integers are stored in this struct). Is it preferable to use a vector of vectors even if I can have a static array of vectors?