12 template<
typename T,
size_t maxElements>
16 typedef typename std::allocator<T>::pointer pointer;
17 typedef typename std::allocator<T>::size_type size_type;
25 pointer allocate(size_type allocElements,
void* hint = 0)
27 if (allocElements > maxElements)
32 return reinterpret_cast<T*
>(m_buffer);
35 void deallocate(pointer p, size_type n) {}
37 template<
typename TOther>
40 char m_buffer[
sizeof( T[maxElements]) ];