All the libraries defined below are included in the header <ranges> and <iterator>.
Here we are going to discuss about Ranges and its libraries.
std::ranges::ViewableRange
Ranges which can safely converted to a view are called Viewable Ranges.
std::ranges::ref_view
Ref_View is a View of the elements of different Range.
It wraps a reference to that different Range.
std::ranges::reverse_view
It is expression equivalent ot view::reverse(discussed in my past article) except that it is evaluated only once.
Sample Code
1 2 3
Comments