Category "vector"

How is a Vector of Vector aligned in memory?

I understand as Set size of vector of vectors at run time describes, one can declare vector of vector as vector<vector<int> > ref; then resize t

comparator for sorting a vector contatining pointers to objects of custom class

By this question I am also trying to understand fundamentals of C++, as I am very new to C++. There are many good answers to problem of sorting a vector/list of

A way to get the local minima and maxima of a vector

I've been trying to retrieve the extrema of a vector that looks like this : [![First case][1]][1](source: noelshack.com) or like this : [![Second case][2]][2](s