ENH: avoid xfer on simple data types

- in many places can use move construcors or rely on RVO
This commit is contained in:
Mark Olesen
2018-01-26 12:50:06 +01:00
parent fa3acc9955
commit db1c1e89be
18 changed files with 134 additions and 152 deletions

View File

@ -1545,9 +1545,8 @@ void Foam::globalMeshData::calcGlobalPointBoundaryCells() const
}
boundaryCellsPtr_.reset(new labelList());
boundaryCellsPtr_.reset(new labelList(std::move(cellMap)));
labelList& boundaryCells = boundaryCellsPtr_();
boundaryCells.transfer(cellMap.shrink());
// Convert point-cells to global (boundary)cell numbers