Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LemonOSProject/LemonOS
/ clear
Method
clear
Kernel/include/vector.h:173–182 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
171
}
172
173
void clear(){
174
acquireLock(&lock);
175
if(data){
176
delete[] data;
177
}
178
179
count = capacity = 0;
180
data = nullptr;
181
releaseLock(&lock);
182
}
183
};
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected