| Home | Libraries | People | FAQ | More

## Class template iterator_mixin

boost::histogram::axis::iterator_mixin — Uses CRTP to inject iterator logic into Derived.

## Synopsis

    // In header: <boost/histogram/axis/iterator.hpp>

    template<typename Derived>
    class iterator_mixin {
    public:
      // types
      typedef iterator< Derived >                     const_iterator;
      typedef std::reverse_iterator< const_iterator > const_reverse_iterator;

      // public member functions
      const_iterator begin() const noexcept;
      const_iterator end() const noexcept;
      const_reverse_iterator rbegin() const noexcept;
      const_reverse_iterator rend() const noexcept;
    };

## Description

### `iterator_mixin` public member functions

1.     const_iterator begin() const noexcept;

   Bin iterator to beginning of the axis (read-only).

2.     const_iterator end() const noexcept;

   Bin iterator to the end of the axis (read-only).

3.     const_reverse_iterator rbegin() const noexcept;

   Reverse bin iterator to the last entry of the axis (read-only).

4.     const_reverse_iterator rend() const noexcept;

   Reverse bin iterator to the end (read-only).