mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 06:00:33 +05:00
Merge branch 'move_in_delete_element_array' into 'master'
use std::move in delete element of array See merge request !46
This commit is contained in:
commit
7c8631cf2e
@ -329,7 +329,7 @@ namespace netgen
|
|||||||
RangeCheck (i+1);
|
RangeCheck (i+1);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
data[i] = data[size-1];
|
data[i] = std::move(data[size-1]);
|
||||||
size--;
|
size--;
|
||||||
// DeleteElement (i+1);
|
// DeleteElement (i+1);
|
||||||
}
|
}
|
||||||
@ -342,7 +342,7 @@ namespace netgen
|
|||||||
RangeCheck (i);
|
RangeCheck (i);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
data[i-1] = data[size-1];
|
data[i-1] = std::move(data[size-1]);
|
||||||
size--;
|
size--;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user