Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
GetSizes is a matrix code snippet to obtain all std::vector sizes in a (one-dimensional) std::vector.
#include <algorithm> |
Prefer algorithms over loops [1][2]
#include <vector> |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.