From b3b516b9a405dbe6ff5d21508a21eec36d374a5e Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Mon, 12 Feb 2001 04:03:20 +0000 Subject: [PATCH] Added copyright and Adaptors section. [SVN r9147] --- generic_programming.html | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/generic_programming.html b/generic_programming.html index 9f3f85c..3ac69db 100644 --- a/generic_programming.html +++ b/generic_programming.html @@ -22,9 +22,11 @@
  • Type Generators -
  • Object Generator +
  • Object Generators
  • Policies Classes + +
  • Adaptors

    Traits

    @@ -167,9 +169,36 @@ void append_sequence(Container& c, Iterator start, Iterator finish) amount of code. -

    Andrei's description of policies describe their power as being derived +

    Andrei's description of policies describe their power as being derived from their granularity and orthogonality. Boost has probably diluted the distinction in the Iterator Adaptors library, where we transmit all of an adapted iterator's behavior in a single policies class. +

    Adaptors

    + +

    An adaptor is a class template which builds on another type or + types to provide a new interface or behavioral variant. Examples of + standard adaptors are std::reverse_iterator, + which adapts an iterator type by reversing its motion upon + increment/decrement, and std::stack, which adapts a + container to provide a simple stack interface. + +

    A more comprehensive review of the adaptors in the standard can be found + + here. +


    + +

    Revised + 11 + Feb 2001 + + +

    © Copyright David Abrahams 2001. Permission to copy, use, modify, + sell and distribute this document is granted provided this copyright notice + appears in all copies. This document is provided "as is" without express or + implied warranty, and with no claim as to its suitability for any purpose. +