mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:57:35 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
8639d8bc21
commit
d26aabff04
140 changed files with 1202 additions and 723 deletions
|
@ -30,7 +30,8 @@ template<typename TEndIterator, IteratorPairWith<TEndIterator> TIterator, typena
|
|||
}
|
||||
|
||||
template<typename TEndIterator, IteratorPairWith<TEndIterator> TIterator, typename T>
|
||||
[[nodiscard]] constexpr size_t find_index(TIterator first, TEndIterator last, T const& value) requires(requires(TIterator it) { it.index(); })
|
||||
[[nodiscard]] constexpr size_t find_index(TIterator first, TEndIterator last, T const& value)
|
||||
requires(requires(TIterator it) { it.index(); })
|
||||
{
|
||||
return find_if(first, last, [&](auto const& v) { return Traits<T>::equals(value, v); }).index();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue