summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2022-04-03 18:06:18 +0430
committerAndreas Kling <kling@serenityos.org>2022-04-04 12:48:31 +0200
commit188207ed79970e5b224f312e2de89d918367d8da (patch)
tree9a68405289f4f6a97c16d18297fee7aaed8b4fb5 /Userland/Libraries/LibGUI
parent33e27c545ed7515185ef93ed0c0c0f49e6759e01 (diff)
downloadserenity-188207ed79970e5b224f312e2de89d918367d8da.zip
AK: Make Vector<T>::{first,last}_matching() return Optional<T&>
These functions are _very_ misleading, as `first()` and `last()` return references, but `{first,last}_matching()` return copies of the values. This commit makes it so that they now return Optional<T&>, eliminating the copy and the confusion.
Diffstat (limited to 'Userland/Libraries/LibGUI')
0 files changed, 0 insertions, 0 deletions