Distributed Ranges
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
dr::sp::buffered_allocator< Allocator > Class Template Reference

Public Types

using value_type = typename std::allocator_traits< Allocator >::value_type
 
using pointer = typename std::allocator_traits< Allocator >::pointer
 
using const_pointer = typename std::allocator_traits< Allocator >::const_pointer
 
using size_type = typename std::allocator_traits< Allocator >::size_type
 
using difference_type = typename std::allocator_traits< Allocator >::difference_type
 
using is_always_equal = std::false_type
 

Public Member Functions

 buffered_allocator (const Allocator &alloc, std::size_t buffer_size, std::size_t n_buffers)
 
pointer allocate (std::size_t size)
 
void deallocate (pointer ptr, std::size_t n)
 
bool operator== (const buffered_allocator &) const =default
 
bool operator!= (const buffered_allocator &) const =default
 

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