MCPcopy Create free account
hub / github.com/HelenOS/helenos / copy_n

Function copy_n

uspace/lib/cpp/include/__bits/algorithm.hpp:361–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359
360 template<class InputIterator, class Size, class OutputIterator>
361 OutputIterator copy_n(InputIterator first, Size count, OutputIterator result)
362 {
363 for (Size i = 0; i < count; ++i, ++first, ++result)
364 *result = *first;
365
366 return result;
367 }
368
369 template<class InputIterator, class OutputIterator, class Predicate>
370 OutputIterator copy_if(InputIterator first, InputIterator last,

Callers 1

test_mutatingMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_mutatingMethod · 0.68