38 #ifndef BLOCKMEMORYALLOCATOR_H 39 #define BLOCKMEMORYALLOCATOR_H 71 pointer
address(reference x)
const {
return &x; }
73 const_pointer
address(const_reference x)
const 78 pointer
allocate(size_type n, const_pointer = 0)
81 SCIP_CALL_ABORT(SCIPallocBlockMemorySize(
scip_, &p, n *
sizeof(T)));
84 throw std::bad_alloc();
85 return static_cast<pointer
>(p);
90 SCIPfreeBlockMemorySize(
scip_, &p, n *
sizeof(T));
95 return static_cast<size_type
>(-1) /
sizeof(T);
143 return !(left == right);
BlockMemoryAllocator & operator=(BlockMemoryAllocator const &b)
const_pointer address(const_reference x) const
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)