-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Officially support intrusive reference counting sample implementation
This commit turns what was previously just an example implementation of intrusive reference counting for testing into an officially supported feature that can now be accessed through 3 headers: - ``include/nanobind/intrusive/counter.h``: Declarations - ``include/nanobind/intrusive/counter.inl``: Implementation - ``include/nanobind/intrusive/ref.h``: Reference counting RAII helper class and Python bindings The documentation was updated to explain how to use these classes. This commit does not create a dependence on this particular implementation of intrusive reference counting---existing code should remain unaffected.
- Loading branch information
Showing
12 changed files
with
933 additions
and
337 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.