14 #include <boost/aligned_storage.hpp> 25 void* allocate(std::size_t n)
27 if (in_use_ || n >= 1024)
28 return ::operator
new(n);
30 return static_cast<void*
>(&space_);
33 void deallocate(
void* p)
35 if (p != static_cast<void*>(&space_))
49 boost::aligned_storage<1024>::type space_;
52 #endif // ALLOCATOR_HPP Definition: allocator.hpp:17