BufferIterator is random access, not just bidirectional

This commit is contained in:
Maxime Coste 2016-07-27 21:36:52 +01:00
parent 14f59d415d
commit 14198fadb4

View File

@ -55,7 +55,7 @@ public:
using difference_type = ssize_t; using difference_type = ssize_t;
using pointer = const value_type*; using pointer = const value_type*;
using reference = const value_type&; using reference = const value_type&;
using iterator_category = std::bidirectional_iterator_tag; using iterator_category = std::random_access_iterator_tag;
BufferIterator() : m_buffer(nullptr) {} BufferIterator() : m_buffer(nullptr) {}
BufferIterator(const Buffer& buffer, ByteCoord coord); BufferIterator(const Buffer& buffer, ByteCoord coord);