mtl::TraversableCollection< Tag, C > Struct Template Reference
[Concepts]

Concept TraversableCollection: collections that can be traversed by cursor or iterator. More...

#include <collection.hpp>

Inheritance diagram for mtl::TraversableCollection< Tag, C >:

Inheritance graph
[legend]
Collaboration diagram for mtl::TraversableCollection< Tag, C >:

Collaboration graph
[legend]

List of all members.

Public Types

typedef associated_type cursor_type
 Associated type: return type of tagged begin and end function.

Public Member Functions

cursor_type begin (const C &c)
 Tagged free function that returns a cursor or iterator at the begin of an interval.
cursor_type end (const C &c)
 Tagged free function that returns a cursor or iterator at the end of an interval.


Detailed Description

template<typename Tag, typename C>
struct mtl::TraversableCollection< Tag, C >

Concept TraversableCollection: collections that can be traversed by cursor or iterator.

Member Function Documentation

template<typename Tag, typename C>
cursor_type mtl::TraversableCollection< Tag, C >::begin ( const C &  c  ) 

Tagged free function that returns a cursor or iterator at the begin of an interval.

The interval is specified by the Tag, i.e. the function is called begin<Tag>(c);

template<typename Tag, typename C>
cursor_type mtl::TraversableCollection< Tag, C >::end ( const C &  c  ) 

Tagged free function that returns a cursor or iterator at the end of an interval.

The interval is specified by the Tag, i.e. the function is called end<Tag>(c);


The documentation for this struct was generated from the following file:





mtl::TraversableCollection< Tag, C > Struct Template Reference -- MTL 4 -- Peter Gottschling and Andrew Lumsdaine -- Generated on 19 May 2009 by Doxygen 1.5.5 -- Copyright 2007 by the Trustees of Indiana University.