mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-11 21:50:34 +05:00
ArrayMem from BaseArray ctor
This commit is contained in:
parent
190e22b06d
commit
2d9e32ba70
@ -1196,6 +1196,14 @@ namespace ngcore
|
|||||||
data[cnt++] = val;
|
data[cnt++] = val;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template <typename T2>
|
||||||
|
ArrayMem (const BaseArrayObject<T2> & a2)
|
||||||
|
: ArrayMem (a2.Size())
|
||||||
|
{
|
||||||
|
for (size_t i : ngcore::Range(size))
|
||||||
|
data[i] = a2[i];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
ArrayMem & operator= (const T & val)
|
ArrayMem & operator= (const T & val)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user