[libcxx-commits] [libcxx] [libc++] Avoid type-punning between __value_type and pair (PR #134819)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Thu May 8 00:18:56 PDT 2025


================
@@ -505,48 +507,24 @@ struct __is_tree_value_type<_One> : __is_tree_value_type_imp<__remove_cvref_t<_O
 template <class _Tp>
 struct __tree_key_value_types {
   typedef _Tp key_type;
-  typedef _Tp __node_value_type;
   typedef _Tp __container_value_type;
   static const bool __is_map = false;
 
   _LIBCPP_HIDE_FROM_ABI static key_type const& __get_key(_Tp const& __v) { return __v; }
----------------
philnik777 wrote:

Yes, but I have a follow-up patch to remove it.

https://github.com/llvm/llvm-project/pull/134819


More information about the libcxx-commits mailing list