summaryrefslogtreecommitdiff
path: root/libdexfile/dex/class_iterator.h
diff options
context:
space:
mode:
Diffstat (limited to 'libdexfile/dex/class_iterator.h')
-rw-r--r--libdexfile/dex/class_iterator.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/libdexfile/dex/class_iterator.h b/libdexfile/dex/class_iterator.h
index 8ed585b0b1..56913a927a 100644
--- a/libdexfile/dex/class_iterator.h
+++ b/libdexfile/dex/class_iterator.h
@@ -41,10 +41,13 @@ class ClassIteratorData {
};
// Iterator for visiting classes in a Dex file.
-class ClassIterator : public std::iterator<std::forward_iterator_tag, ClassIteratorData> {
+class ClassIterator {
public:
- using value_type = std::iterator<std::forward_iterator_tag, ClassIteratorData>::value_type;
- using difference_type = std::iterator<std::forward_iterator_tag, value_type>::difference_type;
+ using iterator_category = std::forward_iterator_tag;
+ using value_type = ClassIteratorData;
+ using difference_type = ptrdiff_t;
+ using pointer = value_type*;
+ using reference = value_type&;
ClassIterator(const DexFile& dex_file, uint32_t class_def_idx)
: data_(dex_file, class_def_idx) {}