Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function template last_value

boost::range_run_storage::last_value — Returns the value of the last Run of an InfiniteRangeRunStorage.

Synopsis

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


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

Description

Returns the value of the last 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.

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

Returns:

The value of the last run in the InfiniteRangeRunStorage.


PrevUpHomeNext