Skip to content

Commit cfaec6b

Browse files
committed
add assignment operator to int_vector_buffer iterator
1 parent de20ee1 commit cfaec6b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

include/sdsl/int_vector_buffer.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,12 @@ class int_vector_buffer
496496
iterator() = delete;
497497
iterator(int_vector_buffer<t_width>& ivb, uint64_t idx=0) : m_ivb(ivb), m_idx(idx) {}
498498

499+
iterator& operator=(const iterator& other)
500+
{
501+
m_idx = other.m_idx;
502+
return *this;
503+
}
504+
499505
iterator& operator++()
500506
{
501507
++m_idx;

0 commit comments

Comments
 (0)