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

Method alloc

gecode/support/heap.hpp:430–436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

428 */
429 template<class T>
430 forceinline T*
431 Heap::alloc(long unsigned int n) {
432 T* p = static_cast<T*>(ralloc(sizeof(T)*n));
433 for (long unsigned int i=0U; i<n; i++)
434 (void) new (p+i) T();
435 return p;
436 }
437 template<class T>
438 forceinline T*
439 Heap::alloc(long int n) {

Callers 1

rallocMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected