Граф коммитов

68 Коммитов

Автор SHA1 Сообщение Дата
A. Jiang 54f4ac6cd2
Implement LWG-3525: `uses_allocator_construction_args` fails to handle types convertible to `pair` (#2639)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
Co-authored-by: Casey Carter <cacarter@microsoft.com>
2022-05-01 02:53:47 -07:00
Stephan T. Lavavej baef90317d
More various cleanups (#2621) 2022-04-04 13:13:16 -07:00
Stephan T. Lavavej 33007ac754
Toolset update: VS 2022 17.1 Preview 2, Clang 13 (#2474) 2022-01-19 17:22:46 -08:00
Casey Carter 3355484683
`allocator::is_always_equal` is deprecated, not removed, in C++20 (#2423) 2022-01-19 16:11:31 -08:00
Igor Zhukov 1881560e04
`<memory>`: Add `nullptr` check in `std::allocator` (#2412) 2022-01-19 15:46:51 -08:00
Curtis J Bezault 2f9f567ffe
`<vector>`: Add ASan annotations. (#2071)
Co-authored-by: Casey Carter <cartec69@gmail.com>
Co-authored-by: Michael Schellenberger Costa <mschellenbergercosta@googlemail.com>
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2021-12-10 20:03:29 -08:00
Casey Carter 3c2fd04d44
Remove improper use of `__declspec(allocator)` (#2328) 2021-11-13 00:37:08 -08:00
Alex Guteniev 6e669f0923
Clean up unnecessary `(void)` casts (#2280) 2021-10-19 19:26:31 -07:00
Alex Guteniev bb210e7bb5
Replace tag dispatch with `if constexpr` for `_Choose_pocca`, `_Choose_pocma` (#2217)
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2021-10-19 17:43:35 -07:00
Rose 32a0cfb22f
Use `static_cast` for `void*` outside of converting to integers (#2096) 2021-10-19 17:31:55 -07:00
Adam Bucior ed318b83a8
Extend `memcpy`, `memmove`, and `memcmp` optimizations (#2158)
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2021-09-24 20:02:24 -07:00
Igor Zhukov 1a985bc4e0
implement LWG-3527 (#2194)
Co-authored-by: Adam Bucior <35536269+AdamBucior@users.noreply.github.com>
Co-authored-by: Alex Guteniev <gutenev@gmail.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2021-09-10 20:24:00 -07:00
Stephan T. Lavavej 7565738033
`_Convert_size()` should be conditionally `noexcept` (#2139) 2021-08-26 18:16:35 -07:00
Stephan T. Lavavej 6d2f8b0ed8
Cleanup comments and clang-formatting (#2136) 2021-08-26 17:51:21 -07:00
Daniel Marshall 472161105d
Remove SHOUTY BANNERS (#2074)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2021-08-05 19:33:09 -07:00
Michael Schellenberger Costa 37b0ce0ce3
Fix race condition in iterator debug machinery (#2060)
Co-authored-by: Adam Bucior <35536269+AdamBucior@users.noreply.github.com>
Co-authored-by: Casey Carter <cacarter@microsoft.com>
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2021-07-30 00:25:40 -07:00
Adam Bucior 8ebfaf8239
Implement P0401R6 Providing Size Feedback In The Allocator Interface (#2036)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2021-07-29 20:31:12 -07:00
Adam Bucior 889da00d70
Forward declare `uses_allocator_construction_args` (#2023)
Co-authored-by: Casey Carter <cartec69@gmail.com>
2021-07-19 18:08:33 -07:00
Stephan T. Lavavej 9a9820df1a
Toolset update: VS 2022 17.0 Preview 2 (#2064) 2021-07-19 17:53:06 -07:00
Michael Schellenberger Costa 96f4b66105
Fix missing `_CONSTEXPR20_CONTAINER` on `_Alloc_temporary` (#1962) 2021-06-11 20:18:56 -07:00
Adam Bucior e326ec1dd9
Optimizations for unreachable sentinels (#1810)
Co-authored-by: Casey Carter <cartec69@gmail.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2021-06-11 19:35:51 -07:00
Charlie Barto c12089e489
P0645R10 <format> Text Formatting (#1821)
Co-authored-by: Casey Carter <cacarter@microsoft.com>
Co-authored-by: Charles Barto <barto.charlie@gmail.com>
Co-authored-by: Elnar Dakeshov <55715127+eldakesh-ms@users.noreply.github.com>
Co-authored-by: MattStephanson <68978048+MattStephanson@users.noreply.github.com>
Co-authored-by: Michael Schellenberger Costa <mschellenbergercosta@googlemail.com>
Co-authored-by: mnatsuhara <46756417+mnatsuhara@users.noreply.github.com>
Co-authored-by: S. B. Tam <cpplearner@outlook.com>
Co-authored-by: statementreply <statementreply@gmail.com>
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2021-04-15 00:30:44 -07:00
Adam Bucior cf15e49e0e
More optimizations for contiguous iterators (#1772) 2021-04-05 16:41:00 -07:00
Adam Bucior dcba13b91e
Optimizations for contiguous iterators (#1433)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
Co-authored-by: Casey Carter <cacarter@microsoft.com>
2021-03-22 21:03:26 -07:00
S. B. Tam 8e428c87f0
_Uglify some non-reserved names (#1743) 2021-03-22 17:47:13 -07:00
Casey Carter 038e07bf3f
Implement ranges::split_view (#1731) 2021-03-18 13:25:34 -07:00
Michael Schellenberger Costa 194efde4bd
Fix ranges::uninitialized_copy/uninitialized_move for trivial types (#1713) 2021-03-04 14:44:44 -08:00
Michael Schellenberger Costa 52b7b3205f
P0980R1 constexpr std::string (#1502)
Co-authored-by: Miya Natsuhara <minatsuh@microsoft.com>
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2021-02-26 21:38:32 -08:00
Adam Bucior 66ca0f30e8
Uses-Allocator and Guaranteed Copy Elision For Piecewise Construction (#1668)
Co-authored-by: ArtemSarmini <16746066+ArtemSarmini@users.noreply.github.com>
Co-authored-by: Michael Schellenberger Costa <mschellenbergercosta@gmail.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2021-02-25 18:26:14 -08:00
Stephan T. Lavavej b52c3797e2
P1614R2 Adding Spaceship <=> To The Library (#1678)
Co-authored-by: Ahana Mukhopadhyay <t-ahmukh@microsoft.com>
Co-authored-by: Anju Del Moral Gonzalez <judelmor@microsoft.com>
Co-authored-by: Casey Carter <cacarter@microsoft.com>
Co-authored-by: Charlie Barto <chbarto@microsoft.com>
Co-authored-by: Curtis Bezault <cubezaul@microsoft.com>
Co-authored-by: d-winsor <danwin@microsoft.com>
Co-authored-by: Michael Schellenberger Costa <mschellenbergercosta@googlemail.com>
Co-authored-by: statementreply <statementreply@gmail.com>
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2021-02-24 16:19:31 -08:00
Michael Schellenberger Costa 28678411ce
Fix uninitialized_meow memcpy optimization (#1548)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2021-02-17 22:21:05 -08:00
Michael Schellenberger Costa a31bd6ed6b
P1004R2 constexpr std::vector (#1407)
Co-authored-by: Miya Natsuhara <minatsuh@microsoft.com>
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2021-02-16 23:54:27 -08:00
Michael Schellenberger Costa 47cd70315d
Prepare the constexpr machinery needed for string and vector (#1546)
Co-authored-by: Miya Natsuhara <minatsuh@microsoft.com>
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2021-02-03 13:54:37 -08:00
Casey Carter 355f8f560e
Update LLVM submodule reference (#1594)
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2021-02-01 19:43:49 -08:00
Michael S. Rizkalla d1f6fe969f
<xmemory>: remove deprecated std::allocator members in C++20 (#1585) 2021-02-01 19:35:06 -08:00
Michael Schellenberger Costa a5b13ff8fb
Implement allocating algorithms for ranges (#1383)
Co-authored-by: Casey Carter <cacarter@microsoft.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2021-01-27 02:02:49 -08:00
Michael S. Rizkalla 256197425b
P0784R7 Library Support For More constexpr Containers (#1369)
Co-authored-by: Adam Bucior <35536269+AdamBucior@users.noreply.github.com>
Co-authored-by: Curtis Jacques Bezault <curtbezault@gmail.com>
Co-authored-by: Michael Schellenberger Costa <mschellenbergercosta@gmail.com>
Co-authored-by: mnatsuhara <46756417+mnatsuhara@users.noreply.github.com>
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2021-01-07 19:01:52 -08:00
Stephan T. Lavavej 2ce62b5848
Always use `if constexpr`, require CUDA 10.1 Update 2 (#1544) 2021-01-05 17:19:12 -08:00
Stephan T. Lavavej 68b344c9dc Run clang-format 11; no manual changes. 2020-12-10 09:27:45 -08:00
Adam Bucior 9bb2a983df
P1771R1 [[nodiscard]] For Constructors (#1495)
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2020-12-02 15:10:23 -08:00
futuarmo 6fe20e62a2
LWG-3170 deprecated std::allocator<T>::is_always_equal (#1501)
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2020-12-01 15:39:26 -08:00
Stephan T. Lavavej 7e07ed8188
Improve type traits usage (#1413) 2020-11-06 16:31:40 -08:00
Adam Bucior a27d894d63
Use memset in even more cases (#1273)
Co-authored-by: Casey Carter <cartec69@gmail.com>
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2020-10-29 00:12:36 -07:00
Casey Carter 09459e77d7
No, unique address! (#1363)
MSVC is finally getting around to implementing `[[no_unique_address]]`, which will result in class layout differing with Clang. Let's comment out the uses that are not yet so commented until we reach compiler parity.
2020-10-23 16:48:24 -07:00
Casey Carter 3d88a64538
Minimal changes to support constexpr allocation in MSVC (#1313)
* Minimal changes to support constexpr allocation in MSVC

* Define `_CONSTEXPR20_DYNALLOC` macro to `constexpr` when the compiler defines `__cpp_constexpr_dynamic_alloc` and `inline` otherwise.
* Implement and test `ranges::construct_at` and `ranges::destroy_at`, mark them (and `std` flavors) `_CONSTEXPR20_DYNALLOC`.
* Implement `ranges::destroy` and `ranges::destroy_n` which share machinery with `ranges::destroy_at` with minimal test coverage. (More to follow.)

[This is a dual of internal MSVC-PR-275909.]
2020-09-22 15:02:43 -07:00
Casey Carter 0e4f6b5df4
Revert "Revert "Implement common_iterator (#1092)" (#1265)" (#1268)
This reverts commit 6156ec32d5.
2020-09-15 20:57:30 -07:00
Casey Carter 6156ec32d5
Revert "Implement common_iterator (#1092)" (#1265)
This reverts commit 30e7a1bab3.
2020-09-04 15:58:20 -07:00
Adam Bucior d6f32c889d
Use memset and memcmp in a bit more cases (#1160)
Fixes #1183.

Co-authored-by: Alex Guteniev <gutenev@gmail.com>
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2020-09-04 11:21:21 -07:00
Michael Schellenberger Costa 30e7a1bab3
Implement common_iterator (#1092)
Co-authored-by: Casey Carter <cacarter@microsoft.com>
2020-09-04 11:12:50 -07:00
Casey Carter 7f29487be5
Implement ranges::uninitialized_move (#1137) 2020-08-12 12:47:52 -07:00