(continued) Having reviewed available NCollection allocators, we can create a C++ standard compliant allocator that would wrap them.Please have a look at the NCollection_StdAllocator.hxx which is available in the git repository, branch CR23569. Here is a corresponding tracker report.You can feed it with any instance of NCollection_BaseAllocator and then provide it to any STL container, for instance: Handle(NCollection_IncAllocator) anIncAlloc = new NCollection_IncAllocator; NCollection_StdAllocator...
NCollection allocators
11:11 / BY Roman Lygin
The previous post has introduced a C++ standard compliant allocator that wraps Open CASCADE allocator interface (Standard::Allocate(), ::Free(), ::Reallocate()) and thus can be used in any containers or other template classes that accept such allocator.Before we move forward to consider another use case of standard allocator, let's make a step aside and review another allocator flavors offered by Open CASCADE. Those of you...