Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Singular/Singular
/ vnew
Function
vnew
kernel/oswrapper/vspace.h:539–543 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
537
538
template <typename T>
539
VRef<T> vnew() {
540
VRef<T> result = VRef<T>::alloc();
541
new (result.to_ptr()) T();
542
return result;
543
}
544
545
template <typename T>
546
VRef<T> vnew_uninitialized() {
Callers
nothing calls this directly
Calls
1
to_ptr
Method · 0.45
Tested by
no test coverage detected