Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/boostorg/asio
/ allocate
Method
allocate
test/bind_allocator.cpp:62–66 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
60
}
61
62
T* allocate(std::size_t n) const
63
{
64
++(*allocations_);
65
return static_cast<T*>(::operator new(sizeof(T) * n));
66
}
67
68
void deallocate(T* p, std::size_t /*n*/) const
69
{
Callers
nothing calls this directly
Calls
1
operator new
Function · 0.70
Tested by
no test coverage detected