## 23.2 The Fundamental Containers

- Overlap of operations among these containers (see table, next slide)
- The 3 containers often interchangeable:

  >     vector<int>::iterator current
  >        = a_container.begin();
  >     while (current != a_container.end())
  >     {
  >        // Number is even if remainder is
  >        // zero after division by two
  >        if (0 == *current % 2)
  >           current = a_container.erase(current);
  >        else
  >           ++current;
  >     }

prev |top |next