Partilhar via


unchecked_uninitialized_fill_n

Same as uninitialized_fill_n but allows the use of an unchecked iterator as output iterator (_First) when _SECURE_SCL=1 is defined. unchecked_uninitialized_fill_n is defined in the stdext namespace.

Observação

This algorithm is a Microsoft extension to the Standard C++ Library. Code implemented using this algorithm will not be portable.

template<class ForwardIterator, class Size, class Type>
   void unchecked_uninitialized_fill_n(
      ForwardIterator _First, 
      Size _Count,
      const Type& _Val
   );

template<class ForwardIterator, class Size, class Type, class Allocator>
   void unchecked_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.

Remarks

See uninitialized_fill_n for a code sample.

For more information on checked iterators, see Checked Iterators.

Requirements

Header: <memory>

Namespace: stdext

See Also

Other Resources

<memory> Members