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

Method alloc

gecode/kernel/core.hpp:2865–2871  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2863 */
2864 template<class T>
2865 forceinline T*
2866 Space::alloc(long unsigned int n) {
2867 T* p = static_cast<T*>(ralloc(sizeof(T)*n));
2868 for (long unsigned int i=0; i<n; i++)
2869 (void) new (p+i) T();
2870 return p;
2871 }
2872 template<class T>
2873 forceinline T*
2874 Space::alloc(long int n) {

Callers 1

rallocMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected