Navigate to list of lectures -- Keyboard shortcut: 'u'  Previous lecture -- Keyboard shortcut: 'p'  Next lecture -- Keyboard shortcut: 'n'  Course home        Alphabetic index  Exit possible frame set        First slide  First annotated slide  Lecture notes - all slides and notes together        Help page about these notes
Lecture 5

LECTURE 5:
Templates and The Standard Library

Kurt Nørmark
Department of Computer Science, Aalborg University

Title page            Abstract            References from this lecture            Exercises in this lecture            Source programs in this lecture            

Page 1TemplatesPage 21Insert iterators
Page 2TemplatesPage 22Standard Containers
Page 3Templates versus generics in Java, C# and C++Page 23Documentation of the container library
Page 4Example - Point<C>Page 24Overview of containers
Page 5Class templates in C++Page 25A priority queue example
Page 6Example - Point<C,dim,default_value>Page 26A map example
Page 7Function templatesPage 27Common properties of containers
Page 8Policies with TemplatesPage 28Container member types
Page 9Example of Policies with TemplatesPage 29A vector specialization: vector<bool>
Page 10Template SpecializationPage 30Algorithms
Page 11Example - Specialization of Point<C> to Point<char>Page 31Documentation of the algorithms library
Page 12Specialization of class templates - complete and partialPage 32Overview of Algorithms
Page 13Compile time computations with template specializationPage 33Principles used for algorithms
Page 14Vector BasicsPage 34The for-each algorithm
Page 15Vectors - basic usePage 35Function objects
Page 16IteratorsPage 36Using the sort algorithm
Page 17Iterators seen as generalized pointersPage 37An example of for-each and function objects
Page 18Example uses of iterators - basis stuffPage 38Use of function objects in STL
Page 19Different classifications of iteratorsPage 39Adapter examples
Page 20Categories of iterators

LENO - LEcture NOtes with LAML technologyGenerated: Tuesday March 26, 2013, 13:03:51
Program Oriented Web Engineering - using LAML