Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function template last_run

boost::range_run_storage::last_run — Returns the last run of an InfiniteRangeRunStorage.

Synopsis

// In header: <boost/range_run_storage/algorithm/first_last.hpp>


template<typename In> unspecified last_run(In const & s);

Description

Returns the last Run of an InfiniteRangeRunStorage. If there are no runs in the InfinteRangeRunStorage, an empty run is returned. Complexity is O(1).

Parameters:
s

The InfiniteRangeRunStorage.

Requires:

In is a model of InfiniteRangeRunStorage.

InfiniteRangeRunStorage<In const>::cursor is a model of BidirectionalIterator.

Returns:

A Run which has the same offset and end offset as the last run in the InfiniteRangeRunStorage if one exists, or and empty run if one doesn't.


PrevUpHomeNext