Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::ListView::iterator Class Reference

#include <value.hh>

Public Types

using value_type = Value *
using pointer = const value_type *
using reference = const value_type &
using difference_type = std::ptrdiff_t
using iterator_category = std::random_access_iterator_tag

Public Member Functions

reference operator* () const
const value_type * operator-> () const
reference operator[] (difference_type diff) const
iterator & operator++ ()
iterator operator++ (int)
iterator & operator-- ()
iterator operator-- (int)
iterator & operator+= (difference_type diff)
iterator operator+ (difference_type diff) const
iterator & operator-= (difference_type diff)
iterator operator- (difference_type diff) const
difference_type operator- (const iterator &rhs) const
std::strong_ordering operator<=> (const iterator &rhs) const =default

Friends

class ListView
iterator operator+ (difference_type diff, const iterator &rhs)

Detailed Description

Random-access iterator that only allows iterating over a constant range of mutable Value pointers.

Note
Not a pointer to minimize potential misuses and implicitly relying on the iterator being a pointer.

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