Intel(R) Threading Building Blocks Doxygen Documentation
version 4.2.3
|
Meets "allocator" requirements of ISO C++ Standard, Section 20.1.5. More...
#include <tbb_allocator.h>
Classes | |
struct | rebind |
Public Types | |
typedef Allocator< T > | base_allocator_type |
typedef base_allocator_type::value_type | value_type |
typedef base_allocator_type::pointer | pointer |
typedef base_allocator_type::const_pointer | const_pointer |
typedef base_allocator_type::reference | reference |
typedef base_allocator_type::const_reference | const_reference |
typedef base_allocator_type::size_type | size_type |
typedef base_allocator_type::difference_type | difference_type |
![]() | |
enum | malloc_type { scalable, standard } |
Specifies current allocator. More... | |
typedef internal::allocator_type< T >::value_type | value_type |
typedef value_type * | pointer |
typedef value_type & | reference |
typedef size_t | size_type |
typedef ptrdiff_t | difference_type |
Public Member Functions | |
zero_allocator () throw () | |
zero_allocator (const zero_allocator &a) throw () | |
template<typename U > | |
zero_allocator (const zero_allocator< U > &a) throw () | |
pointer | allocate (const size_type n, const void *hint=0) |
![]() | |
tbb_allocator () throw () | |
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. More... | |
void | deallocate (pointer p, size_type) |
Free previously allocated block of memory. More... | |
size_type | max_size () const throw () |
Largest value for which method allocate might succeed. More... | |
void | construct (pointer p, value_type &&value) |
Copy-construct value at location pointed to by p. More... | |
void | construct (pointer p, const value_type &value) |
void | destroy (pointer p) |
Destroy value at location pointed to by p. More... | |
Additional Inherited Members | |
![]() | |
static malloc_type | allocator_type () |
Returns current allocator. More... | |
![]() | |
const typedef value_type * | const_pointer |
const typedef value_type & | const_reference |
Meets "allocator" requirements of ISO C++ Standard, Section 20.1.5.
The class is an adapter over an actual allocator that fills the allocation using memset function with template argument C as the value. The members are ordered the same way they are in section 20.4.1 of the ISO C++ standard.
Definition at line 151 of file tbb_allocator.h.
typedef Allocator<T> tbb::zero_allocator< T, Allocator >::base_allocator_type |
Definition at line 154 of file tbb_allocator.h.
typedef base_allocator_type::const_pointer tbb::zero_allocator< T, Allocator >::const_pointer |
Definition at line 157 of file tbb_allocator.h.
typedef base_allocator_type::const_reference tbb::zero_allocator< T, Allocator >::const_reference |
Definition at line 159 of file tbb_allocator.h.
typedef base_allocator_type::difference_type tbb::zero_allocator< T, Allocator >::difference_type |
Definition at line 161 of file tbb_allocator.h.
typedef base_allocator_type::pointer tbb::zero_allocator< T, Allocator >::pointer |
Definition at line 156 of file tbb_allocator.h.
typedef base_allocator_type::reference tbb::zero_allocator< T, Allocator >::reference |
Definition at line 158 of file tbb_allocator.h.
typedef base_allocator_type::size_type tbb::zero_allocator< T, Allocator >::size_type |
Definition at line 160 of file tbb_allocator.h.
typedef base_allocator_type::value_type tbb::zero_allocator< T, Allocator >::value_type |
Definition at line 155 of file tbb_allocator.h.
|
inline |
Definition at line 166 of file tbb_allocator.h.
|
inline |
Definition at line 167 of file tbb_allocator.h.
|
inline |
Definition at line 169 of file tbb_allocator.h.
|
inline |
Definition at line 171 of file tbb_allocator.h.