summaryrefslogtreecommitdiffstats
path: root/libcxx/include
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/include')
-rw-r--r--libcxx/include/memory10
1 files changed, 10 insertions, 0 deletions
diff --git a/libcxx/include/memory b/libcxx/include/memory
index d6b427b941b..56502e2a15a 100644
--- a/libcxx/include/memory
+++ b/libcxx/include/memory
@@ -5597,6 +5597,16 @@ struct __temp_value {
};
#endif
+#if _LIBCPP_STD_VER > 14
+template<typename _Alloc, typename = void>
+struct __is_allocator : false_type {};
+
+template<typename _Alloc>
+struct __is_allocator<_Alloc,
+ void_t<typename _Alloc::value_type, decltype(_VSTD::declval<_Alloc&>().allocate(size_t{}))>>
+ : true_type {};
+#endif
+
_LIBCPP_END_NAMESPACE_STD
_LIBCPP_POP_MACROS
OpenPOWER on IntegriCloud