21 #ifndef Minisat_Alloc_h
22 #define Minisat_Alloc_h
56 uint32_t
size ()
const {
return sz; }
88 if (
cap >= min_cap)
return;
90 uint32_t prev_cap =
cap;
91 while (
cap < min_cap){
96 uint32_t delta = ((
cap >> 1) + (
cap >> 3) + 2) & ~1;
117 uint32_t prev_sz =
sz;
RegionAllocator(uint32_t start_cap=1024 *1024)
const T * lea(Ref r) const
const T & operator[](Ref r) const
void moveTo(RegionAllocator &to)
static void * xrealloc(void *ptr, size_t size)
void capacity(uint32_t min_cap)