diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2022-09-01 13:06:13 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2022-09-01 20:31:00 +0100 |
commit | 775fe01b38933850dcb884733c4d0edc7cde45c3 (patch) | |
tree | 660784718f15833fe4d53df908bda00f71862129 /gcc | |
parent | 33005a4be49466880fe3f5a9317bccc8c1ed423b (diff) | |
download | gcc-775fe01b38933850dcb884733c4d0edc7cde45c3.zip gcc-775fe01b38933850dcb884733c4d0edc7cde45c3.tar.gz gcc-775fe01b38933850dcb884733c4d0edc7cde45c3.tar.bz2 |
libstdc++: Optimize std::decay
Define partial specializations of std::decay and its __decay_selector
helper so that remove_reference, is_array and is_function are not
instantiated for every type, and remove_extent is not instantiated for
arrays.
libstdc++-v3/ChangeLog:
* include/std/type_traits (__decay_selector): Add partial
specializations for array types. Only check for function types
when not dealing with an array.
(decay): Add partial specializations for reference types.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions