Memory Allocation


This section describes classes and functions related to memory allocation.


oneAPI Threading Building Blocks implements several classes that meet the allocator requirements from the [allocator.requirements] ISO C++ Standard section.

Memory Resources

Starting from C++17, the standard library provides a std::pmr::polymorphic_allocator class that allocates memory from a supplied memory resource (see the [mem.poly.allocator.class] ISO/IEC 14882:2017 section). Class std::pmr::memory_resource is an abstract interface for user-side implementation of different allocation strategies. For details, see [mem.res.class] ISO/IEC 14882:2017 standard section.

oneAPI Threading Building Blocks provides a set of std::pmr::memory_resource implementations.