MCPcopy 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
681template <typename T>
682ZRef<T> znew() {
683 ZRef<T> result = ZRef<T>::alloc();
684 new (result.to_ptr()) T();
685 return result;
686}
687
688template <typename T>
689ZRef<T> znew_uninitialized() {

Callers

nothing calls this directly

Calls 1

to_ptrMethod · 0.45

Tested by

no test coverage detected