We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d772ca9 commit c8f2489Copy full SHA for c8f2489
1 file changed
src/include/Jerryscript/Types.h
@@ -850,9 +850,15 @@ class Array : public Object
850
unsigned mIndex;
851
};
852
853
- class Iterator : public std::iterator<std::random_access_iterator_tag, IndexedItem>
+ class Iterator
854
{
855
public:
856
+ using iterator_category = std::random_access_iterator_tag;
857
+ using value_type = IndexedItem;
858
+ using difference_type = std::ptrdiff_t;
859
+ using pointer = IndexedItem*;
860
+ using reference = IndexedItem&;
861
+
862
Iterator(const Iterator&) = default;
863
864
Iterator(Array& array, unsigned index) : item(array, index)
0 commit comments