aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2024-03-23 11:11:17 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2024-08-01 21:56:57 +0100
commit4436889eb4a8e293c88cae8e6a6330e7e23857d7 (patch)
treeaf3aa8c99f2bfd7fe8d1672dc3baeef8d26d4db1
parent3a817a4a5a6d94da9127af3be9f84a74e3076ee2 (diff)
downloadgcc-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.h3
-rw-r--r--libstdc++-v3/include/std/variant7
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>>;