class Split

Declaration

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

Description

An iterator over subslices separated by elements that match a predicate function. This struct is created by the `split()` method on slices.

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

Templates

ItemT
Pred

Method Overview

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

Methods

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

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

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

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

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

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