X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FLibraries%2Flibc%2B%2B.so_src%2Finclude_exp%2Fallocator;h=1608a3c72ed36f273230782e84a58104be4c1a3b;hb=ca9a575116285753b48fd8e0ae6dcdbf8a4af5b1;hp=0ed1bcde85221f3b97440429ed4f2e6f02b2447f;hpb=3a277e214a7bb9977143bf5ac3c8f623c1037319;p=tpg%2Facess2.git diff --git a/Usermode/Libraries/libc++.so_src/include_exp/allocator b/Usermode/Libraries/libc++.so_src/include_exp/allocator index 0ed1bcde..1608a3c7 100644 --- a/Usermode/Libraries/libc++.so_src/include_exp/allocator +++ b/Usermode/Libraries/libc++.so_src/include_exp/allocator @@ -85,59 +85,9 @@ class allocator_noconstruct: public ::std::_bits::allocator_real { 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 - struct rebind - { - typedef allocator other; - }; - - allocator_noconstruct() throw() { - } - allocator_noconstruct(const allocator_noconstruct& alloc __attribute__((unused))) throw() { - } - template - allocator_noconstruct(const allocator_noconstruct& 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( ::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::pointer p, typename allocator_real::const_reference val ) { *p = val; } - // C++11 - #if _CXX11_AVAIL - template - void construct( U* p, Args&&... args ) { - } - #endif void destroy(typename allocator_real::pointer p) { } }; @@ -150,6 +100,7 @@ class allocator: { }; +#if 1 template <> class allocator: public _bits::allocator_noconstruct @@ -160,6 +111,7 @@ class allocator: public _bits::allocator_noconstruct { }; +#endif };