开发者

Which allocator are available in STLPORT, and how to use them

开发者 https://www.devze.com 2022-12-11 11:08 出处:网络
We\'re using STLPORT and we\'d like to change stlport\'s default allocator: instead of vector<int&开发者_开发知识库gt;, we\'d like to try vector<int, otherallocator>

We're using STLPORT and we'd like to change stlport's default allocator: instead of vector<int&开发者_开发知识库gt;, we'd like to try vector<int, otherallocator>

Which alternative allocator are available in stlport, and what are their features? How do I use them?


Take a look here for switching the default allocator. I think you'll find the available allocator implementations are under include/stlport/stl/ in your installation.
That said, it's a standard interface and you can implement your own.

0

精彩评论

暂无评论...
验证码 换一张
取 消