Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.

[Home]Trivial Iterator

Description

A Trivial Iterator i is a type that represents a reference to an element of some Sequence, and allows to access the element through its nested type member [1]. A trivial iterator does not define any traversal operations.

Definitions

Valid expressions

 Expression  Expression type  
typename i::typeA type

Expression semantics

 Expression  Complexity  Precondition  Semantics  Postcondition  
typename i::typeAmortized constant timei is dereferenceablei::type is identical to the type of the pointed element

Invariants

For any trivial iterators i and j the following invariants always hold:

Notes

[1] Any trivial iterator is a model of [Nullary Metafunction Class] concept.

See also

Sequence, Input Iterator


Table of Contents
Last edited July 15, 2002 10:46 am