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

Method allocate

test/io_context.cpp:635–640  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

633 }
634
635 T* allocate(std::size_t n) const
636 {
637 ++(*live_count_);
638 ++(*total_count_);
639 return static_cast<T*>(::operator new(sizeof(T) * n));
640 }
641
642 void deallocate(T* p, std::size_t /*n*/) const
643 {

Callers 1

recycling_allocator_testFunction · 0.45

Calls 1

operator newFunction · 0.70

Tested by

no test coverage detected