38 #ifndef BLOCKMEMORYALLOCATOR_H
39 #define BLOCKMEMORYALLOCATOR_H
79 SCIP_CALL_ABORT(SCIPallocBlockMemorySize(
scip_, &p, n *
sizeof(T)));
82 throw std::bad_alloc();
88 SCIPfreeBlockMemorySize(
scip_, &p, n *
sizeof(T));
92 return static_cast<size_type>(-1) /
sizeof(T);
132 return !(left == right);
const_pointer address(const_reference x) const
void operator=(BlockMemoryAllocator const &b)
const void * const_pointer
const value_type & const_reference
BlockMemoryAllocator< U > other
friend bool operator==(const BlockMemoryAllocator< S > &left, const BlockMemoryAllocator< S > &right)
friend bool operator!=(const BlockMemoryAllocator< S > &left, const BlockMemoryAllocator< S > &right)
void construct(pointer p, const value_type &x)
BlockMemoryAllocator(SCIP *scip)
BlockMemoryAllocator(const BlockMemoryAllocator< U > &other)
pointer address(reference x) const
const value_type * const_pointer
std::ptrdiff_t difference_type
void deallocate(pointer p, size_type n)
pointer allocate(size_type n, const_pointer=0)
size_type max_size() const
BlockMemoryAllocator< U > other
BlockMemoryAllocator(const BlockMemoryAllocator &other)
bool operator==(const BlockMemoryAllocator< T > &left, const BlockMemoryAllocator< T > &right)
bool operator!=(const BlockMemoryAllocator< T > &left, const BlockMemoryAllocator< T > &right)