template<typename T, int alignment>
T* FX::aligned_allocator< T, alignment >::allocate ( const size_t  n  )  const [inline]

Definition at line 177 of file FXMemoryPool.h.

References FX::malloc(), and NULL.

00177                                       {
00178         void *pv = malloc(n * sizeof(T), 0, alignment);
00179         if (pv == NULL) throw std::bad_alloc();
00180         return static_cast<T *>(pv);
00181     }


(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:35:02 2009 for TnFOX by doxygen v1.4.7