]> OCCT Git - occt.git/commit
Foundation Classes - Optimize NCollection_Array1 with type specific (#608)
authorPasukhin Dmitry <dpasukhi@opencascade.com>
Sat, 12 Jul 2025 19:05:55 +0000 (20:05 +0100)
committerGitHub <noreply@github.com>
Sat, 12 Jul 2025 19:05:55 +0000 (20:05 +0100)
commit313630c282c724a3fa442c50ac7a857a52ee485a
tree4d14fcc4bc9a06b7eb24a4661ef7f9f12c27555d
parent08f6de3affd1b5034a858dd838cb1331203978c8
Foundation Classes - Optimize  NCollection_Array1 with type specific (#608)

- Replaced parameterless `construct()` and `destroy()` methods with parameterized versions that specify ranges
- Updated type trait checks from `is_arithmetic` to `is_trivially_default_constructible` and `is_trivially_destructible`
- Removed redundant local variable `anOldSize` in the `Resize` method
src/FoundationClasses/TKernel/NCollection/NCollection_Array1.hxx