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

Method allocate

example/cpp11/allocation/server.cpp:207–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205 }
206
207 T* allocate(std::size_t n) const
208 {
209 return static_cast<T*>(memory_.allocate(sizeof(T) * n));
210 }
211
212 void deallocate(T* p, std::size_t /*n*/) const
213 {

Callers

nothing calls this directly

Calls 1

allocateMethod · 0.45

Tested by

no test coverage detected