STLPORT中有哪些分配器,以及如何使用它们

时间:2009-11-12 15:51:44

标签: c++ stl allocator stlport

我们正在使用STLPORT,我们想要更改stlport的默认分配器: 而不是vector< int>,我们想尝试vector< int,otherallocator>

stlport中有哪些替代分配器,它们的功能是什么? 我该如何使用它们?

1 个答案:

答案 0 :(得分:0)

查看here以切换默认分配器。我想您会发现安装中的include/stlport/stl/下可用的分配器实现。
也就是说,它是标准interface,您可以implement your own