一篇文章搞懂STL中的空間配置器allocator(原創,多圖,易懂)

Table of Contents 0.引入 1.標準的空間配置器allocator 2.更爲高效的空間配置器alloc 2.1----對象的構造與析構 2.1.1 對象的構造:::construct(); 2.1.2對象的析構:::destroy(); 2.2----內存的配置與釋放 2.2.0 概述 2.2.1 一級配置器:__malloc_alloc_template 2.2.2 二級配置器
相關文章
相關標籤/搜索