summaryrefslogtreecommitdiff
path: root/AK/ScopeLogger.h
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2022-04-03 15:36:34 +0430
committerAndreas Kling <kling@serenityos.org>2022-04-04 12:48:31 +0200
commit221ecf17d34e5d82ca5ab74a10c66c0c9763fe3f (patch)
tree42c31f64afa7eae16bc86b2561ab4300364b317a /AK/ScopeLogger.h
parent8f1ba8db4f5ff5765ee7b316106ee1f9fefea006 (diff)
downloadserenity-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/ScopeLogger.h')
0 files changed, 0 insertions, 0 deletions