This repository was archived by the owner on Mar 21, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 26
26
#include < thrust/detail/type_traits/has_member_function.h>
27
27
#include < thrust/detail/type_traits.h>
28
28
29
+ #include < memory>
30
+
29
31
THRUST_NAMESPACE_BEGIN
30
32
namespace detail
31
33
{
@@ -70,6 +72,31 @@ template<typename Alloc, typename U>
70
72
typedef thrust::detail::integral_constant<bool , value> type;
71
73
};
72
74
75
+ #if THRUST_CPP_DIALECT >= 2017
76
+ #define SPECIALIZE_DEPRECATED (trait_name ) \
77
+ template <typename T> \
78
+ struct trait_name <std::allocator<T>> \
79
+ { \
80
+ static bool const value = false ; \
81
+ typedef thrust::detail::integral_constant<bool , value> type; \
82
+ };
83
+
84
+ SPECIALIZE_DEPRECATED (has_is_always_equal)
85
+ SPECIALIZE_DEPRECATED(has_pointer)
86
+ SPECIALIZE_DEPRECATED(has_const_pointer)
87
+ SPECIALIZE_DEPRECATED(has_reference)
88
+ SPECIALIZE_DEPRECATED(has_const_reference)
89
+
90
+ #undef SPECIALIZE_DEPRECATED
91
+
92
+ template <typename T, typename U>
93
+ struct has_rebind <std::allocator<T>, U>
94
+ {
95
+ static bool const value = false ;
96
+ typedef thrust::detail::integral_constant<bool , value> type;
97
+ };
98
+ #endif
99
+
73
100
template <typename T>
74
101
struct nested_pointer
75
102
{
You can’t perform that action at this time.
0 commit comments