mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-10-14 00:51:28 +08:00
The 'CompressedStorageIterator<>' needs to satisfy the RandomAccessIterator
This commit is contained in:
parent
f9f515fb55
commit
5c1029be1a
@ -480,6 +480,7 @@ class CompressedStorageIterator {
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
inline reference operator*() const { return reference(m_data.keyPtr() + m_index, m_data.valuePtr() + m_index); }
|
inline reference operator*() const { return reference(m_data.keyPtr() + m_index, m_data.valuePtr() + m_index); }
|
||||||
|
inline reference operator[](int index) { return *(*this + index); }
|
||||||
|
|
||||||
#define MAKE_COMP(OP) \
|
#define MAKE_COMP(OP) \
|
||||||
inline bool operator OP(const CompressedStorageIterator& other) const { return m_index OP other.m_index; }
|
inline bool operator OP(const CompressedStorageIterator& other) const { return m_index OP other.m_index; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user