Skip to content

[llvm][ADT] Implement IntrusiveRefCntPtr::useCount() #65502

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 6, 2023

Conversation

jansvoboda11
Copy link
Contributor

This function has the same semantics as std::shared_ptr<T>::use_count(), and enables implementing copy-on-write semantics.

This function has the same semantics as `std::shared_ptr<T>::use_count()`, and enables implementing copy-on-write semantics.
@jansvoboda11 jansvoboda11 force-pushed the IntrusiveRefCntPtr-useCount branch from bb241b0 to e41d541 Compare September 6, 2023 17:09
@jansvoboda11 jansvoboda11 merged commit d148767 into llvm:main Sep 6, 2023
@jansvoboda11 jansvoboda11 deleted the IntrusiveRefCntPtr-useCount branch September 6, 2023 17:37
avillega pushed a commit to avillega/llvm-project that referenced this pull request Sep 11, 2023
This function has the same semantics as
`std::shared_ptr<T>::use_count()`, and enables implementing
copy-on-write semantics.
jansvoboda11 added a commit to swiftlang/llvm-project that referenced this pull request Sep 12, 2023
This function has the same semantics as
`std::shared_ptr<T>::use_count()`, and enables implementing
copy-on-write semantics.
jansvoboda11 added a commit to swiftlang/llvm-project that referenced this pull request Oct 5, 2023
This function has the same semantics as
`std::shared_ptr<T>::use_count()`, and enables implementing
copy-on-write semantics.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants