OpenTTD Source: AlternatingView< Titer > Class Template Reference

OpenTTD Source 15.3

Public Member Functions | Private Attributes
AlternatingView< Titer > Class Template Reference
Inheritance diagram for AlternatingView< Titer >:

## Public Member Functions
| AlternatingView (std::ranges::viewable_range auto &&range, Titer middle)
auto | begin () const
auto | end () const

## Private Attributes
Titer | first
| Iterator to first element.
Titer | last
| Iterator to last element.
Titer | middle
| Iterator to middle element.

## Detailed Description

template<typename Titer>
class AlternatingView< Titer >

Definition at line 122 of file alternating_iterator.hpp.

## Constructor & Destructor Documentation

## ◆ AlternatingView()

template<typename Titer >

AlternatingView< Titer >::AlternatingView | ( | std::ranges::viewable_range auto && | range,
|  | Titer | middle
| ) |  |
| inline

Definition at line 124 of file alternating_iterator.hpp.

## Member Function Documentation

## ◆ begin()

template<typename Titer >

auto AlternatingView< Titer >::begin | ( |  | ) | const
| inline

Definition at line 129 of file alternating_iterator.hpp.

## ◆ end()

template<typename Titer >

auto AlternatingView< Titer >::end | ( |  | ) | const
| inline

Definition at line 134 of file alternating_iterator.hpp.

## Field Documentation

## ◆ first

template<typename Titer >

Titer AlternatingView< Titer >::first
| private

Iterator to first element.

Definition at line 140 of file alternating_iterator.hpp.

## ◆ last

template<typename Titer >

Titer AlternatingView< Titer >::last
| private

Iterator to last element.

Definition at line 141 of file alternating_iterator.hpp.

## ◆ middle

template<typename Titer >

Titer AlternatingView< Titer >::middle
| private

Iterator to middle element.

Definition at line 142 of file alternating_iterator.hpp.

The documentation for this class was generated from the following file:

- src/misc/alternating_iterator.hpp