Lukas Tenbrink
|
4cb8a0c77e
Add `resize_initialized` and `resize_uninitialized` to `Vector`. These functions serve as replacements for `resize`, to make sure the caller understands whether elements need to be initialized 'by hand' after the call.
|
2 bulan lalu |
Lukas Tenbrink
|
4371aa864d
Simplify `Memory::memnew_arr_placement` to always initialize memory, to force callers to make the decision of whether to initialize.
|
2 bulan lalu |
Yufeng Ying
|
3bf400ffae
Move bisect to Span and deduplicate code.
|
2 bulan lalu |
mashumafi
|
b73346ef19
Avoid copy-on-write when reading vectors
|
1 tahun lalu |
Lukas Tenbrink
|
b711d72e8f
Remove unnecessary `friend class` declarations of `CowData`.
|
7 bulan lalu |
Thaddeus Crews
|
f09ee0171a
Style: Begin integrating simple `.clangd` fixes
|
5 bulan lalu |
Lukas Tenbrink
|
fde71e0382
Harmonize `String`, `Vector` and `LocalVector` `find` and `rfind`.
|
4 bulan lalu |
Lukas Tenbrink
|
49e860159a
Move `CowData` `find`, `rfind` and `count` to `Span`.
|
4 bulan lalu |
Lukas Tenbrink
|
75bc471965
Add `is_zero_constructible` to denote if a type can be semi-trivially constructed with all 0 bytes.
|
5 bulan lalu |
Lukas Tenbrink
|
605b62cd29
Add `Span` struct (replacing `StrRange`). Spans represent read-only access to a contiguous array, resembling `std::span`.
|
6 bulan lalu |
Thaddeus Crews
|
324512e11c
Style: Replace header guards with `#pragma once`
|
6 bulan lalu |
Lukas Tenbrink
|
cf145de21e
Revert regression (GH-31736) of memory unsafe append_array (append vector to itself). Add comments to prevent future regressions.
|
6 bulan lalu |
Thaddeus Crews
|
361e3b4fe8
Core: Expand `std::initializer_list` support
|
11 bulan lalu |
HP van Braam
|
240f510fa7
Core ubsan fixes
|
7 bulan lalu |
Lukas Tenbrink
|
57073ba14e
Add move constructor and move assignment to CowData, String, Char16String, CharString and Vector.
|
7 bulan lalu |
Sai Nane
|
66b7d5f1b5
Remove apparent contradiction in vector.h header
|
8 bulan lalu |
Thaddeus Crews
|
9903e6779b
Enforce template syntax `typename` over `class`
|
1 tahun lalu |
Muller-Castro
|
a8bc9f3e78
Add const lvalue ref to core/* container parameters
|
1 tahun lalu |
Juan Linietsky
|
24fe0715b5
Promote CowData to 64 bits
|
1 tahun lalu |
Juan Linietsky
|
98c655ec8d
Refactor Node Processing
|
2 tahun lalu |
Rémi Verschelde
|
d95794ec8a
One Copyright Update to rule them all
|
2 tahun lalu |
Rémi Verschelde
|
c717d5c64b
Arrays: Zero new items of trivial types on resize() (bindings only)
|
3 tahun lalu |
Lyuma
|
33fd7c63e1
Prevent out-of-bounds write in array conversion; avoid logspam on empty arrays.
|
3 tahun lalu |
Haoyu Qiu
|
380a53f02f
Add search methods for packed arrays
|
3 tahun lalu |
mashumafi
|
9c2bfeb2fb
Const Ref Callable for custom sort/search
|
3 tahun lalu |
Anilforextra
|
fc27636999
Vectors: Use clear() and has().
|
3 tahun lalu |
Rémi Verschelde
|
9912492e93
Merge pull request #56668 from akien-mga/array-slice-nicer-bound-checks
|
3 tahun lalu |
Rémi Verschelde
|
585231a172
Merge pull request #56492 from akien-mga/remove-author-docstrings
|
3 tahun lalu |
Rémi Verschelde
|
c6cefb1b79
`Array`: Relax `slice` bound checks to properly handle negative indices
|
3 tahun lalu |
Haoyu Qiu
|
c0d3bdc0ca
Add list initialization support for Vector & LocalVector
|
4 tahun lalu |