FORTRAN SOFTWARE CATALOG

Repository owner: sourceryinstitute

smart-pointers

Reference-counted smart pointers with automatic resource cleanup.

Repository · Pinned source (35130adc4be4) · Try in playground · Checked package example

GAMS classifications

About this package

Category
Memory management
License
BSD-3-Clause

Topics: garbage-collection, memory-management, reference-counting, resource-management, smart-pointers

Classification scope and review notes

Reference-counted resource management. Adapted from the author example: a user type extends sp_smart_pointer_t and implements free. The checked main shares one integer resource, verifies reference counts and shared target, checks no premature cleanup and confirms exactly one cleanup after subroutine return. No source edits. This is not exhaustive compiler finalization conformance testing.

Package dependencies

Resolved GitHub repositories used by the verified playground build, combining direct and indirect dependencies. This list does not describe internal module dependencies or native system libraries.

Required by this build

No additional GitHub package dependencies were recorded for this verified build.

Build record verified 2026-10-29.

Used by (0 selected packages)

No other selected build records this repository as a dependency. This is not a measure of usage outside the catalog.

Reviewed procedures

These mappings have pinned source evidence. A checked package example may exercise only some of them; source review is not a numerical benchmark.

sp_smart_pointer_t%start_counter / reference_count

Module: sp_smart_pointer_m

R

R: source-supported

Derivatives / callbacks: not applicable

Reference-counted resource management. Adapted from the author example: a user type extends sp_smart_pointer_t and implements free. The checked main shares one integer resource, verifies reference counts and shared target, checks no premature cleanup and confirms exactly one cleanup after subroutine return. No source edits. This is not exhaustive compiler finalization conformance testing.

Pinned source: src/smart_pointer/sp_smart_pointer_m.f90

Author examples/tests: example/user_object_smart_pointer.f90