Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apple/foundationdb
/ create
Method
create
flow/include/flow/singleton.h:135–141 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
133
static allocator alloc_;
134
135
static T* create() {
136
T* p = alloc_.allocate(1);
137
if (!p)
138
return nullptr;
139
alloc_.construct(p);
140
return p;
141
};
142
143
static void destroy(T* ptr) {
144
alloc_.destroy(ptr);
Callers
nothing calls this directly
Calls
2
allocate
Method · 0.45
construct
Method · 0.45
Tested by
no test coverage detected