vecs
Fast, flexible ecs in C++ with ergonomic API
|
A non-owning wrapper around a resource of type T. More...
#include <vecs.h>
Public Member Functions | |
Resource (T *ptr) | |
Constructs a non-owning Resource wrapper for a given pointer. | |
T & | operator* () const |
T * | operator-> () const |
T * | get () const |
T * | get_mut () |
Public Member Functions inherited from vecs::TypeErasedResource |
A non-owning wrapper around a resource of type T.
Resource<T>
provides a convenient interface for accessing a resource without taking ownership. The resource pointer must be managed elsewhere, ensuring it remains valid as long as this Resource
instance exists.
T | The type of the underlying resource. |
|
inlineexplicit |