DUECA/DUSIME
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | List of all members
dueca::ListElementAllocator< T > Struct Template Reference

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< Telement_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.
 

Detailed Description

template<class T>
struct dueca::ListElementAllocator< T >

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.


The documentation for this struct was generated from the following file: