Skip to content

Struct RangeView

template <typename Iter>

ClassList > RangeView

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:

  • Iter Iterator type (e.g. std::vector<double>::const_iterator).

Public Attributes Documentation

variable b

Iter RangeView< Iter >::b;

Start of the range.


variable e

Iter RangeView< Iter >::e;

Past-the-end of the range.


Public Functions Documentation

function begin

Return the start iterator (enables range-for).

inline Iter RangeView::begin () const


function end

Return the past-the-end iterator (enables range-for).

inline Iter RangeView::end () const



The documentation for this class was generated from the following file include/structure/RangeView.h