A list supports the following operations:
- Create (constructor)
- Destroy (destructor)
- Test for emptiness (empty())
- Get a reference to the first element
- Get a reference to the last element
- Get an iterator that points to the first element
- Get an iterator that points to the last element
- Increment (advance) an iterator
- Decrement an iterator
- Insert (after an iterator)
- Insert (at a specified location)
- Erase (after an iterator)
- Remove an element
|
A vector supports the following operations:
- Create (constructor)
- Destroy (destructor)
- Test for emptiness (empty())
- Get a reference to the first element
- Get a reference to the last element
- Get an iterator that points to the first element
- Get an iterator that points to the last element
- Increment (advance) an iterator
- Decrement an iterator
- Insert (after an iterator)
- Insert (at a specified location)
- Get/Set the ith element
- Erase (after an iterator)
- Remove an element
|