Lukas Tenbrink
|
697e0bb077
Use `reserve` in `LocalVector::resize`, to restore expected growth behavior.
|
2 mēneši atpakaļ |
Lukas Tenbrink
|
37415530d7
Un-support `force_trivial` parameter for `LocalVector`. Instead, users are reformatted to use `resize_uninitialized` to make it explicit that the resize does not initialize missing elements.
|
3 mēneši atpakaļ |
Lukas Tenbrink
|
670ab7a383
Add `resize_initialized` and `resize_uninitialized` to `LocalVector`.
|
3 mēneši atpakaļ |
Lukas Tenbrink
|
70f8dd29f5
Simplify use of `LocalVector` `force_trivial` template parameter.
|
4 mēneši atpakaļ |
Lukas Tenbrink
|
d74ef8cb01
Rename `LocalVector.invert()` -> `LocalVector.reverse()` to match the `Vector`, `String` and `List` APIs.
|
8 mēneši atpakaļ |
Lukas Tenbrink
|
7c37188ca1
Smoke test: In collections, log an error if `reserve()` is called with a number smaller than the current size. Don't log an error if it is called with a number smaller than the current capacity.
|
4 mēneši atpakaļ |
Thaddeus Crews
|
c0e695d5e8
Merge pull request #100944 from Nazarwadim/LocalVector_use_1.5x_growth_factor
|
4 mēneši atpakaļ |
Lukas Tenbrink
|
ccdc5862e9
Add `LocalVector.erase_unordered`, mimicking `erase` but with `remove_at_unordered`, to remove duplicate logic.
|
8 mēneši atpakaļ |
Mikael Hermansson
|
5c5b9847da
Optimize `LocalVector::push_back` for non-trivial objects
|
5 mēneši atpakaļ |
Thaddeus Crews
|
f09ee0171a
Style: Begin integrating simple `.clangd` fixes
|
6 mēneši atpakaļ |
Lukas Tenbrink
|
fde71e0382
Harmonize `String`, `Vector` and `LocalVector` `find` and `rfind`.
|
5 mēneši atpakaļ |
Lukas Tenbrink
|
75bc471965
Add `is_zero_constructible` to denote if a type can be semi-trivially constructed with all 0 bytes.
|
5 mēneši atpakaļ |
Lukas Tenbrink
|
f5cb739a18
Add `Span` conversion to `LocalVector`.
|
5 mēneši atpakaļ |
Thaddeus Crews
|
324512e11c
Style: Replace header guards with `#pragma once`
|
7 mēneši atpakaļ |
Lukas Tenbrink
|
cf145de21e
Revert regression (GH-31736) of memory unsafe append_array (append vector to itself). Add comments to prevent future regressions.
|
7 mēneši atpakaļ |
Nazarii
|
6609caf76e
Use 1.5x growth factor for LocalVector
|
8 mēneši atpakaļ |
Lukas Tenbrink
|
0e32f3b957
Make `LocalVector` -> `Vector` automatic conversion safe for non-trivial types.
|
8 mēneši atpakaļ |
Thaddeus Crews
|
151e7fc687
Merge pull request #100477 from Ivorforce/cowdata-move-insert-n-remove
|
8 mēneši atpakaļ |
Thaddeus Crews
|
0b01f3cc14
Merge pull request #100560 from Ivorforce/localvector-move-semantics
|
8 mēneši atpakaļ |
Lukas Tenbrink
|
3564e7c231
Add `LocalVector` move semantics (constructor and operator=).
|
8 mēneši atpakaļ |
HP van Braam
|
240f510fa7
Core ubsan fixes
|
8 mēneši atpakaļ |
Lukas Tenbrink
|
a636c04244
Optimize `CowData` and `LocalVector` functions `.insert` and `.remove_at` by using move semantics.
|
8 mēneši atpakaļ |
A Thousand Ships
|
86de59d60a
[Core] Add `LocalVector::has` for convenience
|
1 gadu atpakaļ |
Ricardo Buring
|
2ed2ccc2d8
Fixed Timestep Interpolation (2D)
|
1 gadu atpakaļ |
Thaddeus Crews
|
9903e6779b
Enforce template syntax `typename` over `class`
|
1 gadu atpakaļ |
vittorioromeo
|
55ed34e37c
Use '_v' shorthand for type traits and 'if constexpr' where appropriate
|
1 gadu atpakaļ |
Juan Linietsky
|
98c655ec8d
Refactor Node Processing
|
2 gadi atpakaļ |
kleonc
|
0b944e1a68
Make `LocalVector` respect its `tight` template parameter
|
3 gadi atpakaļ |
kobewi
|
277d5361df
Add range iterator to LocalVector
|
2 gadi atpakaļ |
Rémi Verschelde
|
d95794ec8a
One Copyright Update to rule them all
|
2 gadi atpakaļ |