aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm-project/libcxx/src/include/sso_allocator.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm-project/libcxx/src/include/sso_allocator.h')
-rw-r--r--contrib/llvm-project/libcxx/src/include/sso_allocator.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/llvm-project/libcxx/src/include/sso_allocator.h b/contrib/llvm-project/libcxx/src/include/sso_allocator.h
index 2baf599c5c24..6a682fc43f86 100644
--- a/contrib/llvm-project/libcxx/src/include/sso_allocator.h
+++ b/contrib/llvm-project/libcxx/src/include/sso_allocator.h
@@ -41,6 +41,11 @@ public:
typedef _Tp* pointer;
typedef _Tp value_type;
+ template <class U>
+ struct rebind {
+ using other = __sso_allocator<U, _Np>;
+ };
+
_LIBCPP_INLINE_VISIBILITY __sso_allocator() throw() : __allocated_(false) {}
_LIBCPP_INLINE_VISIBILITY __sso_allocator(const __sso_allocator&) throw() : __allocated_(false) {}
template <class _Up> _LIBCPP_INLINE_VISIBILITY __sso_allocator(const __sso_allocator<_Up, _Np>&) throw()