Works like std::make_unique but for IntrusiveRefCntPtr objects.
See https://lists.llvm.org/pipermail/llvm-dev/2021-January/147729.html
Details
Details
- Reviewers
dblaikie MaskRay - Commits
- rGd3ff24cbf872: [ADT] Add makeIntrusiveRefCnt helper function
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/unittests/ADT/IntrusiveRefCntPtrTest.cpp | ||
---|---|---|
62–67 | Couldn't think how best to test this, but these seem to do a good enough job. |
Comment Actions
Looks great!
llvm/include/llvm/ADT/IntrusiveRefCntPtr.h | ||
---|---|---|
300 | s/smart/intrusive/. Though I guess "smart ref counted pointers" can just be omitted. |
s/smart/intrusive/.
Though I guess "smart ref counted pointers" can just be omitted.