Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/boostorg/asio
/ allocate
Method
allocate
example/cpp11/allocation/server.cpp:113–116 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
111
}
112
113
T* allocate(std::size_t n) const
114
{
115
return static_cast<T*>(memory_.allocate(sizeof(T) * n, alignof(T)));
116
}
117
118
void deallocate(T* p, std::size_t /*n*/) const
119
{
Callers
nothing calls this directly
Calls
1
allocate
Method · 0.45
Tested by
no test coverage detected