Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

Class template iterator

boost::histogram::axis::iterator

Synopsis

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

template<typename Axis> 
class iterator : public boost::iterator_adaptor< iterator< Axis >, int, decltype(std::declval< const Axis & >().bin(0)), std::random_access_iterator_tag, decltype(std::declval< const Axis & >().bin(0)), int >
{
public:
  // construct/copy/destruct
  explicit iterator(const Axis &, int);

  // protected member functions
  bool equal(const iterator &) const noexcept;
  decltype(auto) dereference() const;
};

Description

iterator public construct/copy/destruct

  1. explicit iterator(const Axis & axis, int idx);

iterator protected member functions

  1. bool equal(const iterator & other) const noexcept;
  2. decltype(auto) dereference() const;

PrevUpHomeNext