mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-11 21:50:34 +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);
|
||||
#endif
|
||||
|
||||
data[i] = data[size-1];
|
||||
data[i] = std::move(data[size-1]);
|
||||
size--;
|
||||
// DeleteElement (i+1);
|
||||
}
|
||||
@ -342,7 +342,7 @@ namespace netgen
|
||||
RangeCheck (i);
|
||||
#endif
|
||||
|
||||
data[i-1] = data[size-1];
|
||||
data[i-1] = std::move(data[size-1]);
|
||||
size--;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user