25 : std::allocator<T>(other)
30 : std::allocator<T>(other)
36 T* allocate(
size_t number_objects,
const void* UNUSED(hint)=0)
39 if (number_objects == 1) {
41 p = PyMem_Malloc(
sizeof(T) * number_objects);
43 p = PyObject_Malloc(
sizeof(T));
47 p = PyMem_Malloc(
sizeof(T) * number_objects);
49 return static_cast<T*
>(p);
52 void deallocate(T* t,
size_t n)