Skip to content

Add accessor methods to shared_resource<T>#7315

Merged
miscco merged 1 commit intoNVIDIA:mainfrom
bdice:shared-resource-accessors
Jan 22, 2026
Merged

Add accessor methods to shared_resource<T>#7315
miscco merged 1 commit intoNVIDIA:mainfrom
bdice:shared-resource-accessors

Conversation

@bdice
Copy link
Contributor

@bdice bdice commented Jan 21, 2026

Summary

  • Add get(), operator->(), and operator*() to shared_resource<T> to allow access to the underlying resource
  • Add tests for the new accessor methods

Resolves #7313

Add get(), operator->(), and operator*() to shared_resource<T> to allow
access to the underlying resource. This enables use cases where methods
of the wrapped resource need to be called.

Resolves NVIDIA#7313
@bdice bdice requested a review from a team as a code owner January 21, 2026 23:12
@bdice bdice requested a review from ericniebler January 21, 2026 23:12
@github-project-automation github-project-automation bot moved this to Todo in CCCL Jan 21, 2026
@cccl-authenticator-app cccl-authenticator-app bot moved this from Todo to In Review in CCCL Jan 21, 2026
@miscco miscco enabled auto-merge (squash) January 22, 2026 08:37
@github-actions
Copy link
Contributor

🥳 CI Workflow Results

🟩 Finished in 17h 10m: Pass: 100%/84 | Total: 22h 54m | Max: 2h 16m | Hits: 98%/198856

See results here.

@miscco miscco merged commit c28ad43 into NVIDIA:main Jan 22, 2026
101 checks passed
@github-project-automation github-project-automation bot moved this from In Review to Done in CCCL Jan 22, 2026
github-actions bot pushed a commit that referenced this pull request Jan 22, 2026
Add get(), operator->(), and operator*() to shared_resource<T> to allow
access to the underlying resource. This enables use cases where methods
of the wrapped resource need to be called.

Resolves #7313

(cherry picked from commit c28ad43)
@github-actions
Copy link
Contributor

Successfully created backport PR for branch/3.2.x:

miscco pushed a commit that referenced this pull request Jan 23, 2026
Add get(), operator->(), and operator*() to shared_resource<T> to allow
access to the underlying resource. This enables use cases where methods
of the wrapped resource need to be called.

Resolves #7313

(cherry picked from commit c28ad43)

Co-authored-by: Bradley Dice <bdice@bradleydice.com>
Co-authored-by: Bernhard Manfred Gruber <bernhardmgruber@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Add accessor methods to shared_resource<T>

4 participants