mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-26 21:00:34 +05:00
rvalue Array+= allows for Array<int>({1,2,3})+={4,5}
This commit is contained in:
parent
409c460d2f
commit
4565c8ef79
@ -1353,6 +1353,12 @@ namespace ngcore
|
|||||||
return array;
|
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
|
/// bubble sort array
|
||||||
|
Loading…
Reference in New Issue
Block a user