Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Concept Sequence

Sequence

Description

A Sequence exposes an elements property map that models ReadablePropertyMap and begin and end cursors that model ReadableIterator and IncrementableIterator.

Associated types

  • elements

    boost::result_of<boost::sequence::op::elements(boost::add_reference<S>::type)>::type

    The type of the property map for accessing the elements in the Sequence.

  • cursor

    boost::result_of<boost::sequence::op::begin(boost::add_reference<S>::type)>::type

    Iter

  • end_cursor

    boost::result_of<boost::sequence::op::end(boost::add_reference<S>::type)>::type

    The end cursor doesn't have to have the same type as the begin cursor, just as long as you can compare them.

  • key_type

    ReadableIterator<cursor>::reference

    The key type of the cursor.

  • value_type

    property_map::traits::value_type<elements, cursor>::type

    The value type of the elements property map.

Notation

S
A type playing the role of sequence-type in the Sequence concept.
s
Object of type S

Valid expressions

Name Expression Type Semantics

Elements

boost::sequence::elements(s)

elements

Returns the ReadablePropertyMap for accessing the elements of the Sequence s.

Begin cursor

boost::sequence::begin(s)

cursor

Returns a cursor that, when used with the elements property map, traverses the elements of the Sequence s.

End cursor

boost::sequence::end(s)

end_cursor

Returns a suitable cursor for terminating the traversal of the Sequence s.


PrevUpHomeNext