Export (0) Print
Expand All

unchecked_uninitialized_copy

Same as uninitialized_copy but allows the use of an unchecked iterator as output iterator when _SECURE_SCL=1 is defined. This function is defined in the The stdext Namespace namespace.

NoteNote:

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

template<class InputIterator, class ForwardIterator>
   ForwardIterator unchecked_uninitialized_copy(
      InputIterator _First,
      InputIterator _Last,
      ForwardIterator _Dest
   );

template<class InputIterator, class ForwardIterator, class Allocator>
   ForwardIterator unchecked_uninitialized_copy(
      InputIterator _First,
      InputIterator _Last,
      ForwardIterator _Dest,
      Allocator& _Al
   );

_First

An input iterator addressing the first element in the source range to be copied.

_Last

An input iterator addressing the last element in the source range to be copied.

_Dest

A forward iterator addressing the first element in the destination range to be copied.

_Al

The allocator class to use with this object. vector::get_allocator returns the allocator class for the object.

A forward iterator addressing the position one past the final element in the destination range that is receiving the copy.

See uninitialized_copy for a code sample.

For more information on checked iterators, see Checked Iterators.

Header: <memory>

Namespace: stdext

Community Additions

ADD
Show:
© 2014 Microsoft