Copy-constructs elements of an output sequence, specified by a pair of forward iterators, using a copy of a supplied value.
- Template Parameters
-
ForwardIterator | An output forward iterator used to iterate over a sequence of uninitialized memory buffers, in which the function constructs copies of value . |
T | A type of the value to copy-construct all elements of the output sequence. |
- Parameters
-
start | An iterator associated with the first buffer to accept a copy-constructed element. |
end | An iterator that refers to a position past the last element of the output sequence of elements. |
value | A sample to parameterize all invocations of copy-constructors to produce elements of the output sequence. |
- Exceptions
-
Any | exceptions thrown as a result of invoking copy-construction to initialized the output sequence of elements. |
The function does not invoke any destructors or assignment operators discarding prior contents of the output memory. To replace existing elements with copies of value
rather than construct new elements in uninitialized space, use the fill function.