Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/WheretIB/nullc
/ Destroy
Method
Destroy
ObjectPool.h:31–35 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
29
return new T();
30
}
31
void Destroy(T* ptr)
32
{
33
ptr->~T();
34
freeList.push_back(ptr);
35
}
36
private:
37
std::vector<void*> freeList;
38
};
Callers
1
operator delete
Method · 0.45
Calls
1
push_back
Method · 0.45
Tested by
no test coverage detected