Copy-assigns a value to all elements of a sequence specified by a starting iterator and the sequence size.
- Template Parameters
-
ForwardIterator | An output forward iterator used to specify a sequence of elements which are copy-assigned the value . |
T | A type of the value to copy-assign to all elements of the output sequence. |
- Parameters
-
start | An iterator associated with the first element of the sequence to accept value as a result of assignment. |
size | A number of elements in the output sequence to copy-assign value . |
value | A sample to copy to all elements to the output sequence. |
- Exceptions
-
Any | exceptions thrown as a result of invoking copy-assignment of the sequence elements. |
All elements of the output sequence must exist prior to the operation for the assignment to take place, i.e. the output memory space must be initialized. To fill uninitialized memory with copies of an element, use construct_fill_n.