From 2e92a0ae50c1975ac0142427ec085501232f2482 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Thu, 1 Nov 2001 17:25:27 +0000 Subject: [PATCH] changes for new policies interface [SVN r11510] --- iterator_adaptors.htm | 136 +++++++++++++++++++++++++----------------- 1 file changed, 82 insertions(+), 54 deletions(-) diff --git a/iterator_adaptors.htm b/iterator_adaptors.htm index aa3c42a..9657a9e 100644 --- a/iterator_adaptors.htm +++ b/iterator_adaptors.htm @@ -26,6 +26,37 @@ "../../more/generic_programming.html#adaptors">adaptors which apply specific useful behaviors to arbitrary base iterators. +

Backward Compatibility Note

+ +

The library's interface has changed since it was first released, breaking + backward compatibility: + +

    + +
  1. Policies classes now operate on instances of the + whole iterator_adaptor object, rather than just operating on the + Base object. This change not only gives the policies class access + to both members of a pair of interacting iterators, but also eliminates the + need for the ugly type<Reference> and + type<Difference> parameters to various policy functions. + +
  2. The Named Template Parameter + interface has been made simpler, easier to use, and compatible with more + compilers. + +
+ +

Other Documentation

+ +

``Policy Adaptors and the Boost Iterator + Adaptor Library'' is a technical paper describing this library and the + powerful design pattern on which it is based. It was presented at the C++ Template Workshop at OOPSLA + 2001; the slides from the talk are available here. Please note that while the slides + incorporate the minor interface changes described in the previous section, + the paper does not. +

Table of Contents