Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
copy
Prototype

template<class SinglePassRange, class OutputIterator>
OutputIterator copy(const SinglePassRange& source_rng, OutputIterator out_it);

Description

copy copies all elements from source_rng to the range [out_it, out_it + distance(source_rng)). The return value is out_it + distance(source_rng)

Definition

Defined in the header file boost/range/algorithm/copy.hpp

Requirements
Precondition:
Complexity

Linear. Exactly distance(source_rng) assignments are performed.


PrevUpHomeNext