[all-commits] [llvm/llvm-project] d14876: [llvm][ADT] Implement `IntrusiveRefCntPtr::useCoun...

Jan Svoboda via All-commits all-commits at lists.llvm.org
Wed Sep 6 10:37:23 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d1487670ee1caaf1762c341f9f96cfb07540b5c1
      https://github.com/llvm/llvm-project/commit/d1487670ee1caaf1762c341f9f96cfb07540b5c1
  Author: Jan Svoboda <jan_svoboda at apple.com>
  Date:   2023-09-06 (Wed, 06 Sep 2023)

  Changed paths:
    M llvm/include/llvm/ADT/IntrusiveRefCntPtr.h
    M llvm/unittests/ADT/IntrusiveRefCntPtrTest.cpp

  Log Message:
  -----------
  [llvm][ADT] Implement `IntrusiveRefCntPtr::useCount()` (#65502)

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




More information about the All-commits mailing list