DASH  0.3.0
dash::GlobalAllocator< T, GlobMemType > Class Template Reference

Public Types

template<class U >
using rebind = dash::GlobalAllocator< T, GlobMemType >
 Rebind to a different allocator type with same Memory Space. More...
 
using value_type = typename detail::remove_cvref< T >::type
 
using pointer = typename std::pointer_traits< typename GlobMemType::void_pointer >::template rebind< value_type >
 
using memory_resource = GlobMemType
 

Public Member Functions

constexpr GlobalAllocator (memory_resource *memory_resource) noexcept
 
template<class U >
 GlobalAllocator (const GlobalAllocator< U, GlobMemType > &other) noexcept
 
pointer allocate (std::size_t n)
 
void deallocate (pointer p, std::size_t n)
 
memory_resource * resource () const noexcept
 

Detailed Description

template<class T, class GlobMemType>
class dash::GlobalAllocator< T, GlobMemType >

Definition at line 17 of file GlobalAllocator.h.

Member Typedef Documentation

◆ rebind

template<class T, class GlobMemType>
template<class U >
using dash::GlobalAllocator< T, GlobMemType >::rebind = dash::GlobalAllocator<T, GlobMemType>

Rebind to a different allocator type with same Memory Space.

Definition at line 23 of file GlobalAllocator.h.


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