GeoModelUtilities: Add a size hint to geoGetVolumes.
Compare changes
Files
2- scott snyder authored
Add an additional optional argument to geoGetVolumes as a hint on the number of volumes to be returned. If the caller already knows this, then this can allow avoiding some vector resizes.
@@ -140,6 +140,8 @@ void geoVisitVolumes (FUNCTION f, const GeoGraphNode* node, int depthLimit = 1)
@@ -147,7 +149,9 @@ void geoVisitVolumes (FUNCTION f, const GeoGraphNode* node, int depthLimit = 1)