Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
const_iterator is a common typedef in containers for an iterator-type that can only read the element it is located at.
#include <vector> |
Closer inspection (of vector.h for example) yields the following typedefs:
typedef _TYPENAME __value_alloc_type::const_pointer const_iterator; |
This concludes that the following two data types are equivalent:
std::vector<int>::const_iterator DataTypeOne; |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.