Lecture 6

Learning objectives

After this class, you should be able to:

  1. Declare a vector class and use its following features: back, begin, empty, erase, front, insert, [ ], pop_back, push_back, rbegin, rend, constructors.
  2. Explain the semantics of insertion into a vectors whose current storage is already full.

Reading assignment

  1. Sections 3.1-3.4, class notes for complexity analysis.
  2. Lecture: Vectors.
  3. Page 84.

Exercises and review questions


Last modified: 11 Sep 2011