彻底学习STL中的Allocator
来源:互联网 发布:尚书软件 编辑:程序博客网 时间:2024/06/07 17:25
作者: winter
Allocator是C++语言标准库中最神秘的部分之一。它们很少被显式使用,标准也没有明确出它们应该在什么时候被使用。今天的allocator与最初的STL建议非常不同,在此过程中还存在着另外两个设计--这两个都依赖于语言的一些特性,而直到最近才在很少的几个编译器上可用。对allocator的功能,标准似乎在一些方面追加了承诺,而在另外一些方面撤销了承诺。
这篇专栏文章将讨论你能用allocator来做什么以及如何定义一个自己的版本。我只会讨论C++标准所定义的allocator:引入准标准时代的设计,或试图绕过有缺陷的编译器,只会增加混乱。
The Standard Librarian: What Are Allocators Good For?
Allocators are one of the most mysterious parts of the C++ Standard library. Allocators are rarely used explicitly; the Standard doesn’t make it clear when they should ever be used. Today’s allocators are substantially different from those in the original STL proposal, and there were two other designs in between — all of which relied on language features that, until recently, were available on few compilers. The Standard appears to make promises about allocator functionality with one hand and then take those promises away with the other.
- 彻底学习STL中的Allocator
- 彻底学习STL中的Allocator
- 彻底学习STL中的Allocator
- 彻底学习STL中的Allocator
- 彻底学习STL中的Allocator
- 彻底学习STL中的Allocator
- 彻底学习STL中的Allocator
- 彻底学习STL中的Allocator
- 彻底学习STL中的Allocator
- 彻底学习STL中的Allocator以及placement new
- g++ 中的stl allocator
- 详解STL中的allocator
- STL中的Allocator
- stl allocator源码学习
- C++ STL中的自定义Allocator
- STL Allocator
- STL-allocator
- stl allocator
- 软件编程体会(为内存调试做准备)--命名规则
- gun cc--编译器
- Effective STL 中文版(完整版)
- Effective STL 条款6 : 当心C++另人迷惑的解析
- 学习STL map, STL set之数据结构基础
- 彻底学习STL中的Allocator
- c/c++常用头文件函数
- 联机帮助 创建存储过程
- JTree做的JFileTree
- IP魔术师使用简介
- Oracle数据字典的应用实例
- 难舍难分-(想起你)
- 1591Jolly Jumpers
- 什么是GSM?