Daily bit(e) of C++ | std::views::reverse
Daily bit(e) of C++ #178, The C++20 bidirectional reverse views: std::views::reverse.
The std::views::reverse is a conceptually simple view that will produce a reversed view of the provided range.
The view requires a bidirectional range and will work even with uncommon ranges; however, remember that the view requires access to the end iterator, which can trigger eager evaluation.