Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
{
Callers
1
any_completion_handler_associator_test
Function · 0.45
Calls
1
operator new
Function · 0.70
Tested by
no test coverage detected