chsvlib
chsv helper source code

◆ construct_fill()

void Chusov::Memory::construct_fill ( ForwardIterator  start,
ForwardIterator  end,
const T &  value 
)
noexcept

Copy-constructs elements of an output sequence, specified by a pair of forward iterators, using a copy of a supplied value.

Template Parameters
ForwardIteratorAn output forward iterator used to iterate over a sequence of uninitialized memory buffers, in which the function constructs copies of value.
TA type of the value to copy-construct all elements of the output sequence.
Parameters
startAn iterator associated with the first buffer to accept a copy-constructed element.
endAn iterator that refers to a position past the last element of the output sequence of elements.
valueA sample to parameterize all invocations of copy-constructors to produce elements of the output sequence.
Exceptions
Anyexceptions 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.