BloombergLP::bslstl::AlgorithmUtil::copyN

Copy a counted range of elements to an output iterator.

Synopsis

Declared in <bslstl_algorithm.h>

template<
    class t_INPUT_ITERATOR,
    class t_SIZE,
    class t_OUTPUT_ITERATOR>
static
t_OUTPUT_ITERATOR
copyN(
    t_INPUT_ITERATOR first,
    t_SIZE count,
    t_OUTPUT_ITERATOR result);

Description

Copy the specified count elements from the specified first to the specified result. Return an iterator pointing past the last copied element in the output range.

Return Value

iterator pointing past the last copied element in the output range

Parameters

NameDescription
firstbeginning of the range to copy from
countnumber of elements to copy
resultbeginning of the destination range