-
- Downloads
ENH: return plain List instead of shrinking the DynamicList
Using 'return List<T>(std::move(dynList))' for transfer of content (with implicit shrinking) into a plain List, and leave copy elision to do the rest. The implicit transfer (move construct List from DynamicList) will normally invoke resize (new/delete and moving elements). With 'return dynList.shrink()', it will first invoke an internal resize (new/delete and moving elements), followed by a copy construct as a plain list. STYLE: avoid implicit cast to 'const List&' in constructors
Showing
- src/OpenFOAM/containers/IndirectLists/IndirectList/IndirectListI.H 3 additions, 1 deletion...OAM/containers/IndirectLists/IndirectList/IndirectListI.H
- src/dynamicMesh/polyTopoChange/polyTopoChange/combineFaces.C 1 addition, 1 deletionsrc/dynamicMesh/polyTopoChange/polyTopoChange/combineFaces.C
- src/dynamicMesh/polyTopoChange/polyTopoChange/removeCells.C 1 addition, 1 deletionsrc/dynamicMesh/polyTopoChange/polyTopoChange/removeCells.C
- src/fileFormats/vtk/part/foamVtuSizing.C 16 additions, 20 deletionssrc/fileFormats/vtk/part/foamVtuSizing.C
- src/fileFormats/vtk/read/vtkUnstructuredReader.C 2 additions, 1 deletionsrc/fileFormats/vtk/read/vtkUnstructuredReader.C
- src/functionObjects/utilities/vtkWrite/vtkWriteUpdate.C 1 addition, 1 deletionsrc/functionObjects/utilities/vtkWrite/vtkWriteUpdate.C
- src/lumpedPointMotion/pointPatchFields/lumpedPointDisplacementPointPatchVectorField.C 1 addition, 1 deletion...atchFields/lumpedPointDisplacementPointPatchVectorField.C
- src/lumpedPointMotion/tools/lumpedPointTools.C 9 additions, 6 deletionssrc/lumpedPointMotion/tools/lumpedPointTools.C
- src/mesh/snappyHexMesh/meshRefinement/meshRefinementBaffles.C 2 additions, 1 deletion...mesh/snappyHexMesh/meshRefinement/meshRefinementBaffles.C
- src/meshTools/regionSplit/localPointRegion.C 2 additions, 1 deletionsrc/meshTools/regionSplit/localPointRegion.C
- src/meshTools/triSurface/surfaceFeatures/surfaceFeatures.C 1 addition, 1 deletionsrc/meshTools/triSurface/surfaceFeatures/surfaceFeatures.C
- src/surfMesh/MeshedSurface/MeshedSurface.C 2 additions, 2 deletionssrc/surfMesh/MeshedSurface/MeshedSurface.C
- src/surfMesh/surfaceFormats/abaqus/ABAQUSsurfaceFormat.C 1 addition, 1 deletionsrc/surfMesh/surfaceFormats/abaqus/ABAQUSsurfaceFormat.C
- src/surfMesh/surfaceFormats/ac3d/AC3DsurfaceFormat.C 2 additions, 2 deletionssrc/surfMesh/surfaceFormats/ac3d/AC3DsurfaceFormat.C
- src/surfMesh/surfaceFormats/fire/FLMAsurfaceFormat.C 1 addition, 1 deletionsrc/surfMesh/surfaceFormats/fire/FLMAsurfaceFormat.C
- src/surfMesh/surfaceFormats/gts/GTSsurfaceFormat.C 1 addition, 1 deletionsrc/surfMesh/surfaceFormats/gts/GTSsurfaceFormat.C
- src/surfMesh/surfaceFormats/nas/NASsurfaceFormat.C 1 addition, 1 deletionsrc/surfMesh/surfaceFormats/nas/NASsurfaceFormat.C
- src/surfMesh/surfaceFormats/obj/OBJsurfaceFormat.C 1 addition, 1 deletionsrc/surfMesh/surfaceFormats/obj/OBJsurfaceFormat.C
- src/surfMesh/surfaceFormats/smesh/SMESHsurfaceFormat.C 1 addition, 1 deletionsrc/surfMesh/surfaceFormats/smesh/SMESHsurfaceFormat.C
- src/surfMesh/surfaceFormats/starcd/STARCDsurfaceFormat.C 1 addition, 1 deletionsrc/surfMesh/surfaceFormats/starcd/STARCDsurfaceFormat.C
Loading
Please register or sign in to comment