空間配置器

1.SGI標準中的兩個空間配置器 std:allocator 不推薦使用,其實現主要是對::operator new 和operator delete做簡單包裝而已 std::alloc 將內存分配和對象內容構造分開 2.construct與destory construct destory 只接受一個指針的版本 destory 接受一對迭代器版本 首先獲取value_type 萃取其特性has_
相關文章
相關標籤/搜索