Search code examples
c++stlallocatorstlport

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


We're using STLPORT and we'd like to change stlport's default allocator: instead of vector<int>, 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?


Solution

  • 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.