class SplitInclusive

Declaration

template <class ItemT, class Pred>
class SplitInclusive { /* full declaration omitted */ };

Description

An iterator over subslices separated by elements that match a predicate function. Unlike `Split`, it contains the matched part as a terminator of the subslice. This struct is created by the `split_inclusive()` method on slices.

Declared at: sus/collections/iterators/split.h:311

Templates

ItemT
Pred

Method Overview

  • public constexpr Option<sus::collections::SplitInclusive::Item> next() noexcept
  • public constexpr Option<sus::collections::SplitInclusive::Item> next_back() noexcept
  • public constexpr ::sus::iter::SizeHint size_hint() const noexcept

Methods

constexpr Option<
    sus::collections::SplitInclusive::Item>
next() noexcept

Declared at: sus/collections/iterators/split.h:319

constexpr Option<
    sus::collections::SplitInclusive::Item>
next_back() noexcept

Declared at: sus/collections/iterators/split.h:346

constexpr ::sus::iter::SizeHint size_hint()
    const noexcept

Declared at: sus/collections/iterators/split.h:376