16 #if !defined(XALANMEMMGRARRAYALLOCATE_HEADER_GUARD_1357924680)
17 #define XALANMEMMGRARRAYALLOCATE_HEADER_GUARD_1357924680
30 XALAN_CPP_NAMESPACE_BEGIN
44 (Type*)memoryManager.allocate(
sizeof(Type)*size),
49 for ( Type* runPtr = theGuard.get() ; allocated < size ; ++ allocated )
51 new ( runPtr + allocated ) Type();
56 Type* theResult = theGuard.
get();
68 (Type*)memoryManager.allocate(
sizeof(Type)*size),
73 for ( Type* runPtr = theGuard.get() ; allocated < size ; ++ allocated )
75 new ( runPtr + allocated ) Type(memoryManager);
80 Type* theResult = theGuard.
get();
96 for (
size_t i = 0; i < size ; ++i )
101 memoryManager.deallocate ( ptr);
107 XALAN_CPP_NAMESPACE_END
111 #endif // if !defined(XALANMEMMGRARRAYALLOCATE_HEADER_GUARD_1357924680)