Dedekind 0.0.0
A structuralist C++23 Module Library
Loading...
Searching...
No Matches
dedekind::sequences::chain_view< C > Class Template Reference
Inheritance diagram for dedekind::sequences::chain_view< C >:
Collaboration diagram for dedekind::sequences::chain_view< C >:

Public Types

using iterator = typename Walk::iterator

Public Member Functions

constexpr chain_view (C lo, C hi)
constexpr iterator begin () const
constexpr std::default_sentinel_t end () const

Detailed Description

template<HasNNOStep C>
requires std::totally_ordered<C>
class dedekind::sequences::chain_view< C >

chain__Chain_View

The bounded chain [lo, hi] as a range for any carrier with the covering step — bool, \(K_3\), the integrals, ℕ's proxy: the unfold of lo by cover, ending after hi, or at a saturating top short of it. std::views::iota cannot do this (Ternary has no ++, Cardinality no difference_type), so sequences::to_iota_view is this view's integral face. Holds an unfold_view over the state \(1 + C\) (#981): no arithmetic of its own on the bounds, and no base class, since the posture has no subtyping.

Template Parameters
Cthe chain, with the covering step.

ranges__Chain_View

The bounded chain [lo, hi] as a range for any carrier with the covering step lives with the chains in order:runs; to_iota_view above is its integral face.

Constructor & Destructor Documentation

◆ chain_view()

template<HasNNOStep C>
dedekind::category::chain_view< C >::chain_view ( C lo,
C hi )
inlineconstexpr
Parameters
lothe window's bottom.
hiits top (inclusive).

Member Function Documentation

◆ begin()

template<HasNNOStep C>
iterator dedekind::category::chain_view< C >::begin ( ) const
inlineconstexpr
Returns
the walk, starting at lo.

◆ end()

template<HasNNOStep C>
std::default_sentinel_t dedekind::category::chain_view< C >::end ( ) const
inlineconstexpr
Returns
the sentinel the walk compares equal to once it has ended.

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