Views as Data Members for Custom Iterators

In this blog post, we&rsquo;ll write an iterator that works with a vector of vectors. We&rsquo;ll explore a &ldquo;manual&rdquo; version as well as leverage C++20 ranges/views to do the hard work. The problem statement What&rsquo;s the use case? See this popular interview question (found in DailyCodingProblem: https://www.dailycodingproblem.com/ ) Implement a 2D iterator class. It will be…