mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-21 10:05:32 +00:00
AK/Vector: Constify find_first_index()
This commit is contained in:
parent
6b4d7b6c19
commit
3dc0657e58
|
@ -681,7 +681,7 @@ public:
|
|||
return AK::find(begin(), end(), value);
|
||||
}
|
||||
|
||||
Optional<size_t> find_first_index(const T& value)
|
||||
Optional<size_t> find_first_index(const T& value) const
|
||||
{
|
||||
if (const auto index = AK::find_index(begin(), end(), value);
|
||||
index < size()) {
|
||||
|
|
Loading…
Reference in a new issue