Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function template first_run

boost::range_run_storage::first_run — Returns the first run of an InfiniteRangeRunStorage.

Synopsis

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


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

Description

Returns the first 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.

Returns:

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


PrevUpHomeNext