Class
ToStdAllocatorEmulates standard conform allocator.
Emulates standard conform allocator.
Defined in | <seqan/basic.h> |
---|---|
Signature |
template <typename THost, typename TValue>
class ToStdAllocator;
|
Template Parameters
TValue |
Type of allocated items. |
---|---|
THost |
Type of the host allocator object.This object is used to call allocate and deallocate. |
Interface Function Overview
-
THost host(allocator);
The object a given object depends on. -
ToStdAllocator::ToStdAllocator(host);
Constructor
Detailed Description
The member functions allocate and deallocate of ToStdAllocator call the (globale) functions allocate and deallocate, respectively. The globale functions get an allocator object as their first arguments. This allocator object is not the ToStdAllocator object itself, but the host object that was given to the constructor.
Interface Functions Detail
THost host(allocator);
The object a given object depends on.
Parameters
allocator
|
The allocator to query. |
---|
Returns
THost |
The host object. |
---|
Data Races
Thread safety unknown!
ToStdAllocator::ToStdAllocator(host);
Constructor
Parameters
host
|
The host object that is used as allocator for allocate and deallocate. |
---|
Data Races
Thread safety unknown!