Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/boostorg/beast
/ alloc
Method
alloc
example/http/server/fast/fields_alloc.hpp:65–75 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
63
}
64
65
void*
66
alloc(std::size_t n)
67
{
68
auto last = p_ + n;
69
if(last >= end())
70
BOOST_THROW_EXCEPTION(std::bad_alloc{});
71
++count_;
72
auto p = p_;
73
p_ = last;
74
return p;
75
}
76
77
void
78
dealloc()
Callers
1
allocate
Method · 0.80
Calls
1
end
Function · 0.85
Tested by
no test coverage detected