ResourceArena.isActive

Check if resource at given index is active; A resource is active if it has been loaded during this cycle. An active resource can be fetched using opIndex.

For the looser variant, which would return true also if the resource is still loaded in arena, even if not recently loaded, see isAlive.

struct ResourceArena(T)
const
bool
isActive
(
int index
)

Parameters

index int

Index to check.

Return Value

Type: bool

True if the resource is active: allocated, alive, ready to use.

Meta