MCPcopy Create free account
hub / github.com/1a1a11a/libCacheSim / allocate

Method allocate

libCacheSim/dataStructure/sparsepp/spp_utils.h:410–416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

408#endif
409
410 pointer allocate(size_t n, const_pointer /* unused */= 0)
411 {
412 pointer res = static_cast<pointer>(malloc(n * sizeof(T)));
413 if (!res)
414 throw std::bad_alloc();
415 return res;
416 }
417
418 void deallocate(pointer p, size_t /* unused */)
419 {

Callers 2

_allocate_groupMethod · 0.45
_alloc_group_arrayMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected