DUECA/DUSIME
|
Default allocator list objects. More...
#include <ListElementAllocator.hxx>
Classes | |
class | Element |
Single elements of data, with link to the next. More... | |
Public Types | |
typedef Element< T > | element_type |
Shorthand type definition. | |
typedef Element< T > * | element_ptr |
Shorthand pointer definition. | |
Public Member Functions | |
Element< T > * | operator() (element_ptr next=NULL) |
Create a list element with data, for allocating new elements. | |
Element< T > * | operator() (void *mem, element_ptr next=NULL) |
Create a list element with data on recycled memory, with placement new, for re-initialsing elements. | |
Default allocator list objects.
This allocates objects for dueca::AsyncList and dueca::AsyncQueueMT containers. The data objects of class T are created with a default constructor. If you have different needs, you can use this allocator as a template, and create custom allocators for these containers.