8#ifndef INCLUDED_SDSL_ITERATORS
9#define INCLUDED_SDSL_ITERATORS
38 typename t_rac::size_type m_idx;
40 template <
class t_RAC>
87 if (i < 0)
return *
this -= (-i);
94 if (i < 0)
return *
this += (-i);
126template <
class t_rac>
135template <
class t_rac>
142template <
typename t_F>
147 typedef typename std::invoke_result_t<t_F, size_type>
value_type;
A generic vector class for integers of width .
Generic iterator for a random access container.
random_access_const_iterator< t_rac > iterator
iterator operator++(int)
Postfix increment of the Iterator.
t_rac::size_type size_type
bool operator>=(const iterator &it) const
iterator & operator--()
Prefix decrement of the Iterator.
typename t_rac::difference_type difference_type
bool operator<=(const iterator &it) const
bool operator!=(const iterator &it) const
bool operator<(const iterator &it) const
std::random_access_iterator_tag iterator_category
friend random_access_const_iterator< t_RAC >::difference_type operator-(const random_access_const_iterator< t_RAC > &x, const random_access_const_iterator< t_RAC > &y)
iterator & operator+=(difference_type i)
iterator & operator-=(difference_type i)
bool operator>(const iterator &it) const
iterator & operator++()
Prefix increment of the Iterator.
iterator operator--(int)
Postfix decrement of the Iterator.
iterator operator+(difference_type i) const
const_reference operator[](difference_type i) const
const_reference operator*() const
Dereference operator for the Iterator.
typename t_rac::value_type value_type
random_access_const_iterator(const t_rac *rac, size_type idx=0)
Constructor.
const t_rac::value_type const_reference
iterator operator-(difference_type i) const
bool operator==(const iterator &it) const
int_vector.hpp contains the sdsl::int_vector class.
Namespace for the succinct data structure library.
int_vector_iterator< t_int_vector > operator+(typename int_vector_iterator< t_int_vector >::difference_type n, const int_vector_iterator< t_int_vector > &it)
int_vector_const_iterator< t_int_vector >::difference_type operator-(const int_vector_const_iterator< t_int_vector > &x, const int_vector_const_iterator< t_int_vector > &y)
iterator_type begin() const
int_vector ::difference_type difference_type
random_access_const_iterator< random_access_container > iterator_type
std::invoke_result_t< t_F, size_type > value_type
int_vector ::size_type size_type
random_access_container()
iterator_type end() const
value_type operator[](size_type i) const
random_access_container(t_F ff, size_type size)