diff options
author | Ali Mohammad Pur <ali.mpfard@gmail.com> | 2022-04-03 15:36:34 +0430 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-04-04 12:48:31 +0200 |
commit | 221ecf17d34e5d82ca5ab74a10c66c0c9763fe3f (patch) | |
tree | 42c31f64afa7eae16bc86b2561ab4300364b317a /AK/MemMem.h | |
parent | 8f1ba8db4f5ff5765ee7b316106ee1f9fefea006 (diff) | |
download | serenity-221ecf17d34e5d82ca5ab74a10c66c0c9763fe3f.zip |
AK: Allow Optional<T&> to exist
This implements Optional<T&> as a T*, whose presence has been missing
since the early days of Optional.
As a lot of find_foo() APIs return an Optional<T> which imposes a
pointless copy on the underlying value, and can sometimes be very
misleading, with this change, those APIs can return Optional<T&>.
Diffstat (limited to 'AK/MemMem.h')
0 files changed, 0 insertions, 0 deletions