Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ComputationalRobotics/XM-code
/ allocate
Method
allocate
XM/include/Utils/memory.h:837–843 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
835
}
836
837
inline void allocate(const int size) {
838
if (this->vals == nullptr) {
839
this->size = size;
840
this->vals = (int*) malloc(sizeof(int) * size);
841
}
842
return;
843
}
844
845
~HostDnVecInt() {
846
if (this->vals != nullptr) {
Callers
1
HostDnVecInt
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected