Lecture overview -- Keyboard shortcut: 'u'  Previous page: Function templates -- Keyboard shortcut: 'p'  Next page: Example of Policies with Templates -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Alphabetic index  Help page about these notes  Course home    Templates and The Standard Library - slide 8 : 46

Policies with Templates

A type parameter can be used to parameterize a class or function with a class that represent a given policy

For instance a set of functions that compare data in a certain way

See details in §13.4 in The C++ Prog. Lang. (3. edition)