summaryrefslogtreecommitdiff
path: root/Documentation/SmartPointers.md
AgeCommit message (Collapse)Author
2022-02-03AK: Convert the try_make<T> factory function to use ErrorOrIdan Horowitz
This allows more ergonomic memory allocation failure related error checking using the TRY macro.
2022-02-03Kernel: Convert try_make_ref_counted to use ErrorOrIdan Horowitz
This allows more ergonomic memory allocation failure related error checking using the TRY macro.
2022-01-15Documentation: Update names of RefPtr helper functionsRummskartoffel
This seems to have been missed when these functions were renamed.
2021-09-11Documentation: Fix slightly-broken headersBen Wiederhake
GithubFlavoredMarkdown sees the angled brackets (<>) and censors them. Perhaps because it does not allow HTML tags in headings.
2021-06-29Documentation: Document changes to creating smart pointersDaniel Bertalan
Because of the added complexity of *non-throwing* `new`, helper methods for correctly constructing smart pointers were added in a previous commit. This commit changes the documentation to recommend using these, and adds examples to aid in correctly determining when to use non-throwing new when manually creating smart pointers.
2021-04-23AK: Rename adopt() to adopt_ref()Andreas Kling
This makes it more symmetrical with adopt_own() (which is used to create a NonnullOwnPtr from the result of a naked new.)
2020-03-20Documentation: Tweak document about smart pointers a bitAndreas Kling
Add notes about assigning between FooPtr / NonnullFooPtr.
2020-01-23AK: Let's call decrementing reference counts "unref" instead of "deref"Andreas Kling
It always bothered me that we're using the overloaded "dereference" term for this. Let's call it "unreference" instead. :^)
2019-08-01Documentation: Add a paragraph about NonnullOwnPtr to SmartPointers.mdAndreas Kling
2019-06-21Documentation: Update SmartPointers.md with new pointer names.Andreas Kling
2019-05-15Documentation: Add a brief description of Serenity's smart pointer types.Andreas Kling