Same as uninitialized_fill_n but enforces the use of a checked iterator as output iterator (_First). checked_uninitialized_fill_n is defined in the stdext namespace.
Note |
|---|
| This algorithm is a Microsoft extension to the Standard C++ Library. Code implemented using this algorithm will not be portable. |
template<class FwdIt, class Size, class Type>
void checked_uninitialized_fill_n(
ForwardIterator _First,
Size _Count,
const Type& _Val
);
template<class FwdIt, class Size, class Type, class Allocator>
void checked_uninitialized_fill_n(
ForwardIterator _First,
Size _Count,
const Type& _Val,
Allocator& _Al
);
Parameters
- _Al
-
The allocator class to use with this object. vector::get_allocator returns the allocator class for the object.
- _First
-
A forward iterator addressing the first element in the destination range to be initiated.
- _Count
-
The number of elements to be initialized.
- _Val
-
The value to be used to initialize the destination range.
See uninitialized_fill_n for a code sample.
For more information on checked iterators, see Checked Iterators.
Header: <memory>
Other Resources
<memory> Members