Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function template copy

boost::range_run_storage::copy — Copies the runs and values from an InfiniteRangeRunStorage to an OrderedInserter.

Synopsis

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


template<typename In, typename Out> Out & copy(In const & in, Out & out);

Description

Copies the runs and values from an InfiniteRangeRunStorage to an OrderedInserter. Complexity is O(N).

Parameters:
in

An InfiniteRangeRunStorage from which to copy elements and values.

out

An OrderedInserter to receive the elements and values

Requires:

In is a model of InfiniteRangeRunStorage.

Out is a model of OrderedInserter.

Returns:

A reference to out.

Notes:

You must call range_run_storage::commit() on the return value to commit the changes.


PrevUpHomeNext