#include <tbb_allocator.h>
| Public Types | |
| typedef internal::allocator_type< T >::value_type | value_type | 
| typedef value_type * | pointer | 
| typedef const value_type * | const_pointer | 
| typedef value_type & | reference | 
| typedef const value_type & | const_reference | 
| typedef size_t | size_type | 
| typedef ptrdiff_t | difference_type | 
| scalable | |
| standard | |
| enum | malloc_type { scalable, standard } | 
| Specifies current allocator. | |
| Public Member Functions | |
| tbb_allocator (const tbb_allocator &) throw () | |
| template<typename U> | |
| tbb_allocator (const tbb_allocator< U > &) throw () | |
| pointer | address (reference x) const | 
| const_pointer | address (const_reference x) const | 
| pointer | allocate (size_type n, const void *=0) | 
| Allocate space for n objects. | |
| void | deallocate (pointer p, size_type) | 
| Free previously allocated block of memory. | |
| size_type | max_size () const throw () | 
| Largest value for which method allocate might succeed. | |
| template<typename U, typename... Args> | |
| void | construct (U *p, Args &&...args) | 
| Copy-construct value at location pointed to by p. | |
| Classes | |
| struct | rebind | 
The class selects the best memory allocation mechanism available from scalable_malloc and standard malloc. The members are ordered the same way they are in section 20.4.1 of the ISO C++ standard.