Template class for scalable memory allocation if available; possibly non-scalable otherwise.
template<typename T> class tbb_allocator
#include "tbb/tbb_allocator.h"
A tbb_allocator allocates and frees memory via the Intel® Threading Building Blocks (Intel® TBB) malloc library if it is available, otherwise it reverts to using malloc and free.
Set the environment variable TBB_VERSION to 1 to find out if the Intel® TBB malloc library is being used.