Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/fmtlib/fmt
/ allocate
Method
allocate
include/fmt/format.h:732–735 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
730
using value_type = T;
731
732
auto allocate(size_t n) -> T* {
733
FMT_ASSERT(n <= max_value<size_t>() / sizeof(T),
""
);
734
return static_cast<T*>(detail::allocate(n * sizeof(T)));
735
}
736
737
void deallocate(T* p, size_t) { free(p); }
738
Callers
1
grow
Method · 0.45
Calls
1
allocate
Function · 0.85
Tested by
no test coverage detected