mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:07:35 +00:00
AK/Vector: Constify find_first_index()
This commit is contained in:
parent
6b4d7b6c19
commit
3dc0657e58
1 changed files with 1 additions and 1 deletions
|
@ -681,7 +681,7 @@ public:
|
||||||
return AK::find(begin(), end(), value);
|
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);
|
if (const auto index = AK::find_index(begin(), end(), value);
|
||||||
index < size()) {
|
index < size()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue