summaryrefslogtreecommitdiff
path: root/Base/.gitignore
diff options
context:
space:
mode:
authorkleines Filmröllchen <filmroellchen@serenityos.org>2022-04-04 18:19:00 +0200
committerAndreas Kling <kling@serenityos.org>2022-04-06 12:47:50 +0200
commitff8ca811c786e23d0c35408f911dc13aab5f5cfa (patch)
tree58561f6cd39333944a276caf465f87b6c0dd4e90 /Base/.gitignore
parent67b5aea2f9eae9819733d0649fe75ae611ff72c8 (diff)
downloadserenity-ff8ca811c786e23d0c35408f911dc13aab5f5cfa.zip
AK: Add find_first_index to NonnullPtrVector that strips smart pointer
When we want to use the find_first_index that base Vector provides, we need to provide an element of the real contained type. That's impossible for OwnPtr, however, and even with RefPtr there might be instances where we have a raw reference to the object we want to find, but no smart pointer. Therefore, overloading this function (with an identical body, the magic is done by the find_index templatization) with `T const&` as a parameter allows there use cases.
Diffstat (limited to 'Base/.gitignore')
0 files changed, 0 insertions, 0 deletions