Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Singular/Singular
/ znew
Function
znew
kernel/oswrapper/vspace.h:682–686 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
680
681
template <typename T>
682
ZRef<T> znew() {
683
ZRef<T> result = ZRef<T>::alloc();
684
new (result.to_ptr()) T();
685
return result;
686
}
687
688
template <typename T>
689
ZRef<T> znew_uninitialized() {
Callers
nothing calls this directly
Calls
1
to_ptr
Method · 0.45
Tested by
no test coverage detected