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

Method allocate

gecode/kernel/memory/allocators.hpp:401–403  ·  view source on GitHub ↗

* \brief Allocates storage * * Returns a pointer to the first element in a block of storage * count*sizeof(T) bytes in size. The block is aligned * appropriately for objects of type \a T. Throws the exception * \a bad_alloc if the storage is unavailable. */

Source from the content-addressed store, hash-verified

399 * \a bad_alloc if the storage is unavailable.
400 */
401 pointer allocate(size_type count) {
402 return static_cast<pointer>(region.ralloc(sizeof(T)*count));
403 }
404
405 /**
406 * \brief Allocates storage

Callers

nothing calls this directly

Calls 1

rallocMethod · 0.45

Tested by

no test coverage detected