Name

scalable_allocator<T> Template Class — Template class for scalable memory allocation.

Synopsis

#include "tbb/scalable_allocator.h"

template<typename T> class scalable_allocator;

Description

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.

Members

See Allocator Concept.

Get Intel Threading Building Blocks now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.