July 2007
Intermediate to advanced
332 pages
10h 4m
English
scalable_allocator<T> Template Class — Template class for scalable memory allocation.
#include "tbb/scalable_allocator.h" template<typename T> class scalable_allocator;
A scalable_allocator allocates and frees memory in a way that scales with the number of processors. Memory allocated by a scalable_allocator function should be freed by a scalable_allocator function, not by an std::allocator function.
See Allocator Concept.