2006-02-12から1日間の記事一覧

memory pool(3)

そもそも継承使うのがアホだったようです(´・ω・`) template< class T , class M = global_memory_pool > class Memory{ public: static smart_ptr< T > create(){ void* p = M::operator new( sizeof( T ) ); if( p != null ) ::new( p ) T; return smart_…