aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf
diff options
context:
space:
mode:
Diffstat (limited to 'libqpdf')
-rw-r--r--libqpdf/qpdf/NNTree.hh11
1 files changed, 8 insertions, 3 deletions
diff --git a/libqpdf/qpdf/NNTree.hh b/libqpdf/qpdf/NNTree.hh
index f4472662..f9acc0d1 100644
--- a/libqpdf/qpdf/NNTree.hh
+++ b/libqpdf/qpdf/NNTree.hh
@@ -17,12 +17,17 @@ class NNTreeDetails
};
class NNTreeImpl;
-class NNTreeIterator: public std::iterator<
- std::bidirectional_iterator_tag,
- std::pair<QPDFObjectHandle, QPDFObjectHandle>>
+class NNTreeIterator
{
friend class NNTreeImpl;
public:
+ typedef std::pair<QPDFObjectHandle, QPDFObjectHandle> T;
+ using iterator_category = std::bidirectional_iterator_tag;
+ using value_type = T;
+ using difference_type = long;
+ using pointer = T*;
+ using reference = T&;
+
virtual ~NNTreeIterator() = default;
bool valid() const;
NNTreeIterator& operator++();