PoolingAllocator.h
Go to the documentation of this file.
25 value_type *allocate(std::size_t n) { return static_cast<value_type*>(memAllocRigid(n*sizeof(value_type))); }
26 void deallocate(value_type *vp, std::size_t n) noexcept { memFreeRigid(vp, n*sizeof(value_type)); }
33 template<class U, class ... Args> void construct(U *p, Args && ... args) { new((void *)p) U(std::forward<Args>(args)...); }
bool operator!=(const PoolingAllocator< L > &l, const PoolingAllocator< R > &r) noexcept
Definition: PoolingAllocator.h:46
bool operator==(const PoolingAllocator< L > &, const PoolingAllocator< R > &) noexcept
Definition: PoolingAllocator.h:39
STL Allocator that uses Squid memory pools for memory management.
Definition: PoolingAllocator.h:19
void deallocate(value_type *vp, std::size_t n) noexcept
Definition: PoolingAllocator.h:26
PoolingAllocator(const PoolingAllocator< Other > &) noexcept
Definition: PoolingAllocator.h:24
Definition: PoolingAllocator.h:29
PoolingAllocator< OtherValue > other
Definition: PoolingAllocator.h:30