diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2024-03-23 11:11:17 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2024-08-01 21:56:57 +0100 |
commit | 4436889eb4a8e293c88cae8e6a6330e7e23857d7 (patch) | |
tree | af3aa8c99f2bfd7fe8d1672dc3baeef8d26d4db1 | |
parent | 3a817a4a5a6d94da9127af3be9f84a74e3076ee2 (diff) | |
download | gcc-4436889eb4a8e293c88cae8e6a6330e7e23857d7.zip gcc-4436889eb4a8e293c88cae8e6a6330e7e23857d7.tar.gz gcc-4436889eb4a8e293c88cae8e6a6330e7e23857d7.tar.bz2 |
libstdc++: Remove unused helper traits
These are not used anywhere, we have more efficient variable templates
for them instead. They're not documented as extensions, and are easy for
users to write if they need them.
libstdc++-v3/ChangeLog:
* include/bits/utility.h (__is_in_place_type): Remove.
* include/std/variant (__is_in_place_tag): Remove.
-rw-r--r-- | libstdc++-v3/include/bits/utility.h | 3 | ||||
-rw-r--r-- | libstdc++-v3/include/std/variant | 7 |
2 files changed, 0 insertions, 10 deletions
diff --git a/libstdc++-v3/include/bits/utility.h b/libstdc++-v3/include/bits/utility.h index 44c7433..751ff7b 100644 --- a/libstdc++-v3/include/bits/utility.h +++ b/libstdc++-v3/include/bits/utility.h @@ -220,9 +220,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION template<typename _Tp> inline constexpr bool __is_in_place_type_v<in_place_type_t<_Tp>> = true; - template<typename _Tp> - using __is_in_place_type = bool_constant<__is_in_place_type_v<_Tp>>; - template<typename> inline constexpr bool __is_in_place_index_v = false; diff --git a/libstdc++-v3/include/std/variant b/libstdc++-v3/include/std/variant index d0f7bd0..12108d0 100644 --- a/libstdc++-v3/include/std/variant +++ b/libstdc++-v3/include/std/variant @@ -1489,13 +1489,6 @@ namespace __detail::__variant using _Traits = __detail::__variant::_Traits<_Types...>; template<typename _Tp> - struct __is_in_place_tag : false_type { }; - template<typename _Tp> - struct __is_in_place_tag<in_place_type_t<_Tp>> : true_type { }; - template<size_t _Np> - struct __is_in_place_tag<in_place_index_t<_Np>> : true_type { }; - - template<typename _Tp> static constexpr bool __not_in_place_tag = !__is_in_place_type_v<__remove_cvref_t<_Tp>> && !__is_in_place_index_v<__remove_cvref_t<_Tp>>; |