rvalue Array+= allows for Array<int>({1,2,3})+={4,5}

This commit is contained in:
Joachim Schoeberl 2022-04-02 10:36:55 +02:00
parent 409c460d2f
commit 4565c8ef79

View File

@ -1353,6 +1353,12 @@ namespace ngcore
return array;
}
template <typename T, typename T2>
inline Array<T> operator+= (Array<T> && array, const BaseArrayObject<T2> & a2)
{
array += a2;
return std::move(array);
}
/// bubble sort array