MCPcopy Create free account
hub / github.com/boostorg/asio / allocate

Method allocate

test/thread_pool.cpp:354–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352 }
353
354 T* allocate(std::size_t n) const
355 {
356 ++(*live_count_);
357 ++(*total_count_);
358 return static_cast<T*>(::operator new(sizeof(T) * n));
359 }
360
361 void deallocate(T* p, std::size_t /*n*/) const
362 {

Callers

nothing calls this directly

Calls 1

operator newFunction · 0.70

Tested by

no test coverage detected