Closed Bug 1329513 Opened 5 years ago Closed 5 years ago
Raw Or Smart Pointer<T> to remove raw and smart pointers from their contained type
59 bytes, text/x-review-board-request
Basically, a combination of RemovePointer<T> and RemoveSmartPointer<T>.
Comment on attachment 8824832 [details] Bug 1329513 - RemoveRawOrSmartPointerHelper to extract T from T*, RefPtr<T>, and nsCOMPtr<T> - https://reviewboard.mozilla.org/r/103106/#review103894 `static_assert`-style tests for this would be splendid. :)
Attachment #8824832 - Flags: review?(nfroyd) → review+
Pushed by firstname.lastname@example.org: https://hg.mozilla.org/integration/autoland/rev/2df2cb2dd088 RemoveRawOrSmartPointerHelper to extract T from T*, RefPtr<T>, and nsCOMPtr<T> - r=froydnj
Renamed 'RemoveAnyPointer' to 'RemoveRawOrSmartPointer', as I didn't want to give the wrong impression that it could remove other types of smart pointers like UniquePtr.
Summary: Add RemoveAnyPointer<T> to remove raw and smart pointers from their contained type → Add RemoveRawOrSmartPointer<T> to remove raw and smart pointers from their contained type
You need to log in before you can comment on or make changes to this bug.