Difference between revisions of "cpp/memory/uninitialized copy n"
From cppreference.com
m (Text replace - "{{example cpp" to "{{example") |
m (Text replace - "/sidebar" to "/navbar") |
||
Line 1: | Line 1: | ||
{{cpp/title|uninitialized_copy}} | {{cpp/title|uninitialized_copy}} | ||
− | {{cpp/memory/ | + | {{cpp/memory/navbar}} |
{{ddcl | header=memory | notes={{mark since c++11}} | | {{ddcl | header=memory | notes={{mark since c++11}} | | ||
template< class InputIterator, class Size, class ForwardIterator > | template< class InputIterator, class Size, class ForwardIterator > |
Revision as of 13:36, 15 June 2012
Defined in header <memory>
|
||
template< class InputIterator, class Size, class ForwardIterator > ForwardIterator uninitialized_copy_n( InputIterator first, Size count, |
(since C++11) | |
Copies count
elements from a range beginning at first
to an uninitialized memory area beginning at d_first
. The elements in the uninitialized area are constructed using copy constructor.
Contents |
Parameters
first | - | the beginning of the range of the elements to copy |
d_first | - | the beginning of the destination range |
Return value
iterator to the element past the last element copied.
Complexity
linear in count
Possible implementation
Example
This section is incomplete Reason: no example |