Commit bd33a382 authored by Mark Olesen's avatar Mark Olesen
Browse files

COMP: define additional UIndirectList iterator member types (closes #847)

- required for std::iterator_traits specialization, which is used by
  the std::max_element algorithm on Darwin.
parent 30309e9a
......@@ -190,6 +190,12 @@ public:
public:
using difference_type = label;
using value_type = T;
using pointer = T*;
using reference = T&;
using iterator_category = std::forward_iterator_tag;
iterator
(
UList<T>& list,
......@@ -231,6 +237,12 @@ public:
public:
using difference_type = label;
using value_type = const T;
using pointer = const T*;
using reference = const T&;
using iterator_category = std::forward_iterator_tag;
const_iterator
(
const UList<T>& list,
......@@ -241,7 +253,7 @@ public:
base_(baseIter)
{}
const_reference operator*() const
reference operator*() const
{
return data_[*base_];
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment