Struct RangeView
template <typename Iter>
Lightweight view over a sub-range defined by two iterators. More...
#include <RangeView.h>
Public Attributes
| Type | Name |
|---|---|
| Iter | b |
| Iter | e |
Public Functions
| Type | Name |
|---|---|
| Iter | begin () const Return the start iterator (enables range-for). |
| Iter | end () const Return the past-the-end iterator (enables range-for). |
Detailed Description
A RangeView is an iterable wrapper around a begin/end iterator pair, enabling range-for loops on slices of containers without copying.
Template parameters:
IterIterator type (e.g.std::vector<double>::const_iterator).
Public Attributes Documentation
variable b
Start of the range.
variable e
Past-the-end of the range.
Public Functions Documentation
function begin
Return the start iterator (enables range-for).
function end
Return the past-the-end iterator (enables range-for).
The documentation for this class was generated from the following file include/structure/RangeView.h