MCPcopy Create free account
hub / github.com/Gecode/gecode / allocate

Method allocate

gecode/support/block-allocator.hpp:130–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128
129 template<class T, class A, int blocksize>
130 void
131 BlockAllocator<T,A,blocksize>::allocate(void) {
132 // Allocate another block
133 Block* nb = static_cast<Block*>(a.ralloc(sizeof(Block)));
134 nb->next = b; b = nb;
135 n = &nb->b[blocksize];
136 _size += sizeof(Block);
137 }
138
139 template<class T, class A, int blocksize>
140 forceinline size_t

Callers

nothing calls this directly

Calls 1

rallocMethod · 0.45

Tested by

no test coverage detected