- Add rebind<>.

This commit is contained in:
Sylvain Pion 2001-10-08 16:36:46 +00:00
parent 8d4fdd6a5b
commit d4afc7f112
2 changed files with 4 additions and 0 deletions

View File

@ -35,6 +35,8 @@ class New_delete_allocator
typedef T& reference; typedef T& reference;
typedef const T& const_reference; typedef const T& const_reference;
template <class U> struct rebind { typedef New_delete_allocator<U> other; };
New_delete_allocator() {} New_delete_allocator() {}
pointer pointer

View File

@ -35,6 +35,8 @@ class New_delete_allocator
typedef T& reference; typedef T& reference;
typedef const T& const_reference; typedef const T& const_reference;
template <class U> struct rebind { typedef New_delete_allocator<U> other; };
New_delete_allocator() {} New_delete_allocator() {}
pointer pointer