MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / allocate

Function allocate

system/lib/libcxx/src/thread.cpp:119–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117 typedef T value_type;
118
119 T* allocate(size_t __n) { return static_cast<T*>(::operator new(__n * sizeof(T))); }
120 void deallocate(T* __p, size_t) { ::operator delete(static_cast<void*>(__p)); }
121
122 size_t max_size() const { return size_t(~0) / sizeof(T); }

Callers 2

allocateMethod · 0.50
allocateMethod · 0.50

Calls 1

operator newFunction · 0.70

Tested by

no test coverage detected