aboutsummaryrefslogtreecommitdiff
path: root/libcxx/include/__node_handle
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/include/__node_handle')
-rw-r--r--libcxx/include/__node_handle7
1 files changed, 4 insertions, 3 deletions
diff --git a/libcxx/include/__node_handle b/libcxx/include/__node_handle
index 71309be62f3c..bc49272b9f1c 100644
--- a/libcxx/include/__node_handle
+++ b/libcxx/include/__node_handle
@@ -60,7 +60,8 @@ public:
#include <__assert>
#include <__config>
-#include <memory>
+#include <__memory/allocator_traits.h>
+#include <__memory/pointer_traits.h>
#include <optional>
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
@@ -90,8 +91,8 @@ class _LIBCPP_TEMPLATE_VIS __basic_node_handle
_NodeType, __basic_node_handle<_NodeType, _Alloc, _MapOrSetSpecifics>>;
typedef allocator_traits<_Alloc> __alloc_traits;
- typedef typename __rebind_pointer<typename __alloc_traits::void_pointer,
- _NodeType>::type
+ typedef __rebind_pointer_t<typename __alloc_traits::void_pointer,
+ _NodeType>
__node_pointer_type;
public: