Name
uninitialized_copy function template — Copies into uninitialized memory
Synopsis
template <class InputIter, class FwdIter>
FwdIter uninitialized_copy(InputIter first, InputIter last, FwdIter result);
The uninitialized_copy
function template is like the copy
algorithm, except the result
iterator is assumed to point to
uninitialized memory. The range [first
, last
) is copied to result
using placement new
.
See Also
raw_storage_iterator class
template, uninitialized_fill
function template, copy
in
<algorithm>
, new
operator
Get C++ In a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.