folly::fbstring_detail::copy_n

Copies n elements from an input range to an output range.

Synopsis

Declared in <folly/FBString.h>

template<
    class InIt,
    class OutIt>
std::pair<InIt, OutIt>
copy_n(
    InIt b,
    std::iterator_traits<InIt>::difference_type n,
    OutIt d);

Return Value

A pair holding the input and output iterators advanced past the copied range.

Parameters

NameDescription
bIterator to the first element to copy.
nThe number of elements to copy.
dOutput iterator to the start of the destination range.