Thrill  0.1
Allocator< void > Class Template Reference

Detailed Description

template<>
class thrill::mem::Allocator< void >

Definition at line 127 of file allocator.hpp.

+ Collaboration diagram for Allocator< void >:

#include <allocator.hpp>

Classes

struct  rebind
 

Public Types

using const_pointer = const void *
 
using is_always_equal = std::false_type
 C++11 type flag. More...
 
using pointer = void *
 
using value_type = void
 

Public Member Functions

 Allocator (Manager &manager) noexcept
 Construct Allocator with Manager object. More...
 
 Allocator (const Allocator &) noexcept=default
 copy-constructor More...
 
template<typename OtherType >
 Allocator (const Allocator< OtherType > &other) noexcept
 copy-constructor from a rebound allocator More...
 
template<typename Other >
bool operator!= (const Allocator< Other > &other) const noexcept
 Compare to another allocator of same type. More...
 
template<typename Other >
bool operator== (const Allocator< Other > &other) const noexcept
 Compare to another allocator of same type. More...
 

Public Attributes

Managermanager_
 

Member Typedef Documentation

◆ const_pointer

using const_pointer = const void*

Definition at line 131 of file allocator.hpp.

◆ is_always_equal

using is_always_equal = std::false_type

C++11 type flag.

Definition at line 135 of file allocator.hpp.

◆ pointer

using pointer = void*

Definition at line 130 of file allocator.hpp.

◆ value_type

using value_type = void

Definition at line 132 of file allocator.hpp.

Constructor & Destructor Documentation

◆ Allocator() [1/3]

Allocator ( Manager manager)
inlineexplicitnoexcept

Construct Allocator with Manager object.

Definition at line 141 of file allocator.hpp.

References Allocator< Type >::Allocator().

◆ Allocator() [2/3]

Allocator ( const Allocator< void > &  )
defaultnoexcept

copy-constructor

◆ Allocator() [3/3]

Allocator ( const Allocator< OtherType > &  other)
inlinenoexcept

copy-constructor from a rebound allocator

Definition at line 149 of file allocator.hpp.

Member Function Documentation

◆ operator!=()

bool operator!= ( const Allocator< Other > &  other) const
inlinenoexcept

Compare to another allocator of same type.

Definition at line 164 of file allocator.hpp.

◆ operator==()

bool operator== ( const Allocator< Other > &  other) const
inlinenoexcept

Compare to another allocator of same type.

Definition at line 158 of file allocator.hpp.

Member Data Documentation

◆ manager_

Manager* manager_

pointer to common Manager object. If we use a reference here, then the allocator cannot be default move/assigned anymore.

Definition at line 154 of file allocator.hpp.


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