Conceptual
Login

Smart Pointer

A struct that wraps a raw pointer and encodes an ownership policy in its destructor and access operators — unique ownership, shared counting, or borrowed views. The pointer's type documents and enforces who frees the allocation.

Questions this Concept answers

  • Why do the kernel's safe abstractions hand a driver its resources inside wrapper types rather than as raw pointers?