diff options
author | Luc Grosheintz <luc.grosheintz@gmail.com> | 2025-09-02 09:59:44 +0200 |
---|---|---|
committer | Tomasz KamiĆski <tkaminsk@redhat.com> | 2025-09-02 13:27:45 +0200 |
commit | dea668daa2ea8f9d3d8058dac56e60ebe79255c1 (patch) | |
tree | 476b861b5e0b85e844f950160587d52c29aa20c5 /gcc/rust | |
parent | cfc9a42e8b533cad39ea9e1c4d5a06d4ba82be48 (diff) | |
download | gcc-dea668daa2ea8f9d3d8058dac56e60ebe79255c1.zip gcc-dea668daa2ea8f9d3d8058dac56e60ebe79255c1.tar.gz gcc-dea668daa2ea8f9d3d8058dac56e60ebe79255c1.tar.bz2 |
libstdc++: Move _Index_tuple, _Build_index_tuple to <type_traits>.
As preparation for implementing std::constant_wrapper that's part of the
C++26 version of the <type_traits> header, the two classes _Index_tuple
and _Build_index_tuple are moved to <type_traits>. These two helpers are
needed by std::constant_wrapper to initialize the elements of one C
array with another.
Since, <bits/utility.h> already includes <type_traits> this solution
avoids creating a very small header file for just these two internal
classes. This approach doesn't move std::index_sequence and related code
to <type_traits> and therefore doesn't change which headers provide
user-facing features.
libstdc++-v3/ChangeLog:
* include/bits/utility.h (_Index_tuple): Move to <type_traits>.
(_Build_index_tuple): Ditto.
* include/std/type_traits (_Index_tuple): Ditto.
(_Build_index_tuple): Ditto.
Reviewed-by: Jonathan Wakely <jwakely@redhat.com>
Signed-off-by: Luc Grosheintz <luc.grosheintz@gmail.com>
Diffstat (limited to 'gcc/rust')
0 files changed, 0 insertions, 0 deletions