Name
uninitialized_fill function template — Fills uninitialized memory
Synopsis
template <class FwdIter, class T>
void uninitialized_fill(FwdIter first, FwdIter last, const T& x);
The uninitialized_fill
function template is like the fill
algorithm, except that it fills
uninitialized memory. Every item in the range [first
, last
) is constructed as a copy of x
using placement new
.
See Also
raw
_storage_iterator
class template, uninitialized_copy function
template, uninitialized_fill_n function
template, fill
in <algorithm>
, new
keyword
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.