Skip to content

Using NeKernel: make_ptr: OwnPtr.h

Amlal El Mahrouss edited this page Mar 8, 2026 · 1 revision

Implementation

template <typename T, typename... Args>
inline OwnPtr<T> make_ptr(Args&&... args) {
  OwnPtr<T> ret;
  ret.template New<Args...>(forward(args)...);

  return ret;
}

Brief

This serves as an helper to construct an OwnPtr object, which is used to manipulate RAII objects inside the kernel.

Clone this wiki locally