[C++] Object pool
template class CObjectPool { using uchar = unsigned char; public: CObjectPool() { alloc(); } ~CObjectPool() { } void alloc() { free_list_ = new uchar[sizeof(T) * ALLOC_COUNT]; uchar* pNext = free_list_; uchar** ppCurr = reinterpret_cast(free_list_); for (int i = 0; i sizeof(void*)); pNext += sizeof(T); // 이전에 가리키던 블럭은 다음 블..