Talk:cpp/algorithm/copy
From cppreference.com
Does std::copy/std::copy_if take into account if the output range is empty or smaller than the input range? The two sample implementations certainly do not. Azrael (talk) 22:49, 18 November 2015 (PST)
- No. It's the caller's responsibility. The output doesn't even have to be a range - e.g., an output-only iterator like std::ostream_iterator. T. Canens (talk) 23:40, 18 November 2015 (PST)