Lecture overview -- Keyboard shortcut: 'u'  Previous page: A map example -- Keyboard shortcut: 'p'  Next page: Container member types -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Help page about these notes  Alphabetic index  Course home  Lecture 5 - Page 27 : 39
Notes about C++
Templates and The Standard Library
Common properties of containers

Overall properties of STL containers

  • The C++ Programming Language: Page 441
 

 

  • No common base class for the standard containers

    • However, each container provides standard operations with standard names and semantics

  • Emphasis on iterators

    • Different kinds of iterators are not related by a common base class

  • Non-intrusive containers

    • Elements of containers do no need to be instances of certain classes

    • Values of built-in types can be elements in container

  • Standard containers relies heavily on templates

    • Template specializations provide shared implementations for pointers to elements