Update vector.h (#551)

Made the value parameter to resize() a const_reference instead of a value type to spare the unnecessary copy
This commit is contained in:
gerschdn 2022-06-03 18:10:52 +02:00 committed by John Wellbelove
parent cace71c3f7
commit 97732ab5cd

View File

@ -224,7 +224,7 @@ namespace etl
///\param new_size The new size.
///\param value The value to fill new elements with. Default = default constructed value.
//*********************************************************************
void resize(size_t new_size, T value)
void resize(size_t new_size, const_reference value)
{
ETL_ASSERT(new_size <= CAPACITY, ETL_ERROR(vector_full));