Concept RootedIteratorConcept
Iterator that knows its container.

Extends ForwardIteratorConcept
All Extended CopyConstructibleConcept, DefaultConstructibleConcept, EqualityComparableConcept, ForwardIteratorConcept, InputIteratorConcept, IteratorAssociatedTypesConcept
All Subcl's MutableRootedIteratorConcept, MutableRootedRandomAccessIteratorConcept, RootedRandomAccessIteratorConcept
Defined in  
Signature RootedIteratorConcept<T>

Member Function Overview

Member Functions Inherited From EqualityComparableConcept

Interface Function Overview

Interface Functions Inherited From InputIteratorConcept

Interface Functions Inherited From IteratorAssociatedTypesConcept

Interface Metafunction Overview

Interface Metafunctions Inherited From IteratorAssociatedTypesConcept

Interface Functions Detail

bool atBegin(it);

Queries whether the rooted iterator is at the beginning of the container or not.

Parameters

it The rooted iterator to query.

Returns

bool Whether or not the iterator is at the beginning.

bool atEnd(it);

Queries whether the rooted iterator is at the end of the container or not.

Parameters

it The rooted iterator to query.

Returns

bool Whether or not the iterator is at the end.

TContainer container(it);

Returns the container.

Parameters

it The iterator to get the container of.

Returns

TContainer The container of the iterat.r

Interface Metafunctions Detail

Container<TIterator>::Type

Metafunction that returns the container of an iterator.

Template Parameters

TIterator The type of the iterator to query for its container.

Returns

Type The type of the container for TIterator