Usermode/AxWin4 - Screen dimensions acquisition, speedup, window render
[tpg/acess2.git] / Usermode / Libraries / libc++.so_src / include_exp / allocator
index 6057eb3..1608a3c 100644 (file)
 
 namespace std {
 
-template <class T> class allocator
+template <class T> class allocator;
+
+namespace _bits {
+
+template <class T>
+class allocator_real
 {
 public:
        typedef T       value_type;
@@ -33,14 +38,14 @@ public:
                typedef allocator<Type> other;
        };
        
-       allocator() throw() {
+       allocator_real() throw() {
        }
-       allocator(const allocator& alloc __attribute__((unused))) throw() {
+       allocator_real(const allocator_real& alloc __attribute__((unused))) throw() {
        }
        template <class U>
-       allocator(const allocator<U>& alloc) throw() {
+       allocator_real(const allocator_real<U>& alloc) throw() {
        }
-       ~allocator() throw() {
+       ~allocator_real() throw() {
        }
        
        pointer address(reference x) const {
@@ -75,6 +80,39 @@ public:
        }
 };
 
+template <class T>
+class allocator_noconstruct:
+       public ::std::_bits::allocator_real<T>
+{
+public:
+       void construct( typename allocator_real<T>::pointer p, typename allocator_real<T>::const_reference val ) {
+               *p = val;
+       }
+       void destroy(typename allocator_real<T>::pointer p) {
+       }
+};
+
+};
+
+template <class T>
+class allocator:
+       public _bits::allocator_real<T>
+{
+};
+
+#if 1
+template <>
+class allocator<unsigned char>:
+       public _bits::allocator_noconstruct<unsigned char>
+{
+};
+template <>
+class allocator<unsigned long>:
+       public _bits::allocator_noconstruct<unsigned long>
+{
+};
+#endif
+
 };
 
 #endif

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