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

Method allocate

test/any_completion_handler.cpp:136–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134 }
135
136 T* allocate(std::size_t n) const
137 {
138 ++(*count_);
139 return static_cast<T*>(::operator new(sizeof(T) * n));
140 }
141
142 void deallocate(T* p, std::size_t /*n*/) const
143 {

Calls 1

operator newFunction · 0.70

Tested by

no test coverage detected