template
void assign(TIterator first, const TIterator last, parameter_t value)
{
// Copy from the range.
iterator p = etl::copy(first, last, begin()); // shouldn't this also be etl::copy_s? What happens if range [first, last[ is bigger than [begin(), end()[?
// Initialise any that are left.
etl::fill(p, end(), value); // what happens here if p > end()?
}
On assign method of etl/array.h
template
void assign(TIterator first, const TIterator last, parameter_t value)
{
// Copy from the range.
iterator p = etl::copy(first, last, begin()); // shouldn't this also be etl::copy_s? What happens if range [first, last[ is bigger than [begin(), end()[?
// Initialise any that are left. etl::fill(p, end(), value); // what happens here if p > end()? }