We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0d682f2 + 9585cf0 commit 8eabb61Copy full SHA for 8eabb61
pumi/pumi_list.h
@@ -34,9 +34,14 @@ class ListMember
34
};
35
36
template <class T>
37
-class ListIterator : public std::iterator<std::forward_iterator_tag,T*>
+class ListIterator
38
{
39
public:
40
+ using iterator_category = std::forward_iterator_tag;
41
+ using value_type = T*;
42
+ using difference_type = std::ptrdiff_t;
43
+ using pointer = T**;
44
+ using reference = T*&;
45
ListIterator():current(0) {}
46
ListIterator(ListMember* p):current(p) {}
47
bool operator==(ListIterator<T> const& other) const
0 commit comments