db_vector has two iterator classes --- db_vector_base_iterator and db_vector_iterator .
The differences between the two classes are that the db_vector_base_iterator can only be used to read its referenced value, so it is intended as db_vector's const iterator; While the other class allows both read and write access. If your access pattern is readonly, it is strongly recommended that you use the const iterator because it is faster and more efficient. The two classes have identical behaviors to std::vector::const_iterator and std::vector::iterator respectively. Note that the common public member function behaviors are described in the db_base_iterator section.
Member | Description |
---|---|
db_vector_base_iterator | db_vector_base_iterator |
db_vector_iterator | db_vector_iterator |