mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:27:46 +00:00
Userland: Make use of container version of any_of
Problem: - New `any_of` implementation takes the entire container so the user does not need to pass explicit begin/end iterators. This is unused except is in tests. Solution: - Make use of the new and more user-friendly version where possible.
This commit is contained in:
parent
cb9de1d741
commit
a0d7640e03
3 changed files with 6 additions and 6 deletions
|
@ -46,7 +46,7 @@ public:
|
|||
|
||||
bool is_empty() const
|
||||
{
|
||||
return !any_of(m_cells.begin(), m_cells.end(), [](auto& cell) { return cell != Cell(); });
|
||||
return !any_of(m_cells, [](auto& cell) { return cell != Cell(); });
|
||||
}
|
||||
|
||||
size_t length() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue