Logo MTL4
Public Types | Public Member Functions
mtl::TraversableCollection< Tag, C > Struct Template Reference

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 -- Gen. with rev. 7542 on Sat Aug 11 2012 by doxygen 1.7.6.1 -- © 2010 by SimuNova UG.