I found on Stack Overflow that this single statement can be used to find whether all the elements of a vector are zero, or not, but this is only for 1D vector.
bool zeros = std::all_of(v.begin(), v.end(), [](int i) { return i==0; });
How can I modify it so that it can work for a 2D vector?
Is it possible to implement it by just using a single statement?