diff options
author | Patrick Palka <ppalka@redhat.com> | 2022-09-07 10:21:45 -0400 |
---|---|---|
committer | Patrick Palka <ppalka@redhat.com> | 2022-09-07 10:21:45 -0400 |
commit | 66af6e991bf0daf1c41e46400a8f19e87c358cf2 (patch) | |
tree | 93c355e894f77239c489beda6bcdf2f94074e160 /gcc | |
parent | 873d395c2976a8321cec03f21d77e11f746da7c0 (diff) | |
download | gcc-66af6e991bf0daf1c41e46400a8f19e87c358cf2.zip gcc-66af6e991bf0daf1c41e46400a8f19e87c358cf2.tar.gz gcc-66af6e991bf0daf1c41e46400a8f19e87c358cf2.tar.bz2 |
libstdc++: Optimize is_void and is_null_pointer
Instead of defining these in terms of a helper class template
and the relatively expensive __remove_cv_t, just declare four
explicit specializations of the main template, one for each choice
of cv-quals.
libstdc++-v3/ChangeLog:
* include/std/type_traits (__is_void_helper): Remove.
(is_void): Make the primary template derive from false_type,
and define four explicit specializations that derive from
true_type.
(__is_null_pointer_helper, is_null_pointer): Likewise.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions