Idan Horowitz
a65bbbdb71
Kernel: Convert try_make_ref_counted to use ErrorOr
...
This allows more ergonomic memory allocation failure related error
checking using the TRY macro.
2022-02-03 23:33:20 +01:00
Rummskartoffel
5fe619de99
Documentation: Update names of RefPtr helper functions
...
This seems to have been missed when these functions were renamed.
2022-01-15 21:33:04 +01:00
Ben Wiederhake
4acdea7cfe
Documentation: Fix slightly-broken headers
...
GithubFlavoredMarkdown sees the angled brackets (<>) and censors them.
Perhaps because it does not allow HTML tags in headings.
2021-09-11 13:17:44 +02:00
Daniel Bertalan
754ddda38a
Documentation: Document changes to creating smart pointers
...
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-06-29 22:57:52 +04:30
Andreas Kling
b91c49364d
AK: Rename adopt() to adopt_ref()
...
This makes it more symmetrical with adopt_own() (which is used to
create a NonnullOwnPtr from the result of a naked new.)
2021-04-23 16:46:57 +02:00
Andreas Kling
2176a3dd18
Documentation: Tweak document about smart pointers a bit
...
Add notes about assigning between FooPtr / NonnullFooPtr.
2020-03-20 14:41:02 +01:00
Andreas Kling
3de5439579
AK: Let's call decrementing reference counts "unref" instead of "deref"
...
It always bothered me that we're using the overloaded "dereference"
term for this. Let's call it "unreference" instead. :^)
2020-01-23 15:14:21 +01:00
Andreas Kling
f4bae8971c
Documentation: Add a paragraph about NonnullOwnPtr to SmartPointers.md
2019-08-01 14:35:50 +02:00
Andreas Kling
e97d714bbc
Documentation: Update SmartPointers.md with new pointer names.
2019-06-21 18:42:17 +02:00
Andreas Kling
3cd1db09d4
Documentation: Add a brief description of Serenity's smart pointer types.
2019-05-15 14:07:14 +02:00