From 83a4380dabd9655b199d89553c4d04a27dbb638e Mon Sep 17 00:00:00 2001 From: Jeremy Siek Date: Thu, 15 Feb 2001 16:49:16 +0000 Subject: [PATCH] added mention of traits requirement under Type Requirements section [SVN r9216] --- counting_iterator.htm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/counting_iterator.htm b/counting_iterator.htm index 81a662c..e337044 100644 --- a/counting_iterator.htm +++ b/counting_iterator.htm @@ -131,6 +131,13 @@ The Incrementable type must be Default Constructible, Copy Constructible, and Assignable. +Also, the Incrementable type must provide access to an +associated difference_type and iterator_category +through the counting_iterator_traits +class. + +

Furthermore, if you wish to create a counting iterator that is a Forward Iterator, then the following expressions must be valid: @@ -155,6 +162,8 @@ n = i - j i < j + +

Members

The counting iterator type implements the member functions and