class RSplitN

Declaration

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

Description

An iterator over subslices separated by elements that match a predicate function, limited to a given number of splits, starting from the end of the slice. This struct is created by the `rsplitn()` method on slices.

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

Templates

ItemT
Pred

Method Overview

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

Methods

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

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

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

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