Usermode/libc++ - Fix off by one in map indexing
[tpg/acess2.git] / Usermode / Libraries / libc++.so_src / include_exp / allocator
index 0ed1bcd..1608a3c 100644 (file)
@@ -85,59 +85,9 @@ class allocator_noconstruct:
        public ::std::_bits::allocator_real<T>
 {
 public:
-/*
-       typedef T       value_type;
-       typedef T*      pointer;
-       typedef T&      reference;
-       typedef const T* const_pointer;
-       typedef const T&        const_reference;
-       typedef size_t  size_type;
-       typedef ptrdiff_t       difference_type;
-
-       template <class Type>
-       struct rebind
-       {
-               typedef allocator<Type> other;
-       };
-       
-       allocator_noconstruct() throw() {
-       }
-       allocator_noconstruct(const allocator_noconstruct& alloc __attribute__((unused))) throw() {
-       }
-       template <class U>
-       allocator_noconstruct(const allocator_noconstruct<U>& alloc) throw() {
-       }
-       ~allocator_noconstruct() throw() {
-       }
-
-       pointer address(reference x) const {
-               return &x;
-       }
-       const_pointer address(const_reference x) const {
-               return &x;
-       }
-       pointer allocate(size_type n, const void* hint=0) {
-               hint = hint;
-               return static_cast<pointer>( ::operator new (n * sizeof(value_type)) );
-       }
-       void deallocate(pointer p, size_type n) {
-               n=n;
-               ::operator delete(p);
-       }
-       size_type max_size() {
-               return ((size_type)-1) / sizeof(value_type);
-       }
-*/
-
        void construct( typename allocator_real<T>::pointer p, typename allocator_real<T>::const_reference val ) {
                *p = val;
        }
-       // C++11
-       #if _CXX11_AVAIL
-       template<class U, class... Args>
-       void construct( U* p, Args&&... args ) {
-       }
-       #endif
        void destroy(typename allocator_real<T>::pointer p) {
        }
 };
@@ -150,6 +100,7 @@ class allocator:
 {
 };
 
+#if 1
 template <>
 class allocator<unsigned char>:
        public _bits::allocator_noconstruct<unsigned char>
@@ -160,6 +111,7 @@ class allocator<unsigned long>:
        public _bits::allocator_noconstruct<unsigned long>
 {
 };
+#endif
 
 };
 

UCC git Repository :: git.ucc.asn.au