Library Version 12.1.6.2

Chapter 14. Iterator Classes for db_map and db_multimap
Prev |  | Next

## Chapter 14. Iterator Classes for db_map and db_multimap

db_map has two iterator class templates -- db_map_base_iterator and db_map_iterator .

They are the const iterator class and iterator class for db_map and db_multimap . db_map_iterator inherits from db_map_base_iterator .

The two classes have identical behaviors to std::map::const_iterator and std::map::iterator respectively. Note that the common public member function behaviors are described in the db_base_iterator section.

The differences between the two classes are that the db_map_base_iterator can only be used to read its referenced value, while db_map_iterator 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.

#### Public Members

Member | Description
--- | ---
db_map_base_iterator | db_map_base_iterator
db_map_iterator | db_map_iterator

#### Group

Dbstl Iterator Classes

Prev |  | Next
refresh | Home | Chapter 15. Db_map_base_iterator