Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function template first_value

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

Synopsis

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


template<typename In> 
  concepts::InfiniteRangeRunStorage< In const  >::reference 
  first_value(In const & s);

Description

Returns the value of the first Run of an InfiniteRangeRunStorage. Complexity is O(1).

Parameters:
s

The InfiniteRangeRunStorage.

Requires:

In is a model of InfiniteRangeRunStorage.

s contains at least one run.

Returns:

The value of the first run in the InfiniteRangeRunStorage.


PrevUpHomeNext