mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:37:46 +00:00
AK: Convert AnyOf/AllOf to east-const style
This commit is contained in:
parent
d40d10aae7
commit
2dc31c503e
2 changed files with 6 additions and 6 deletions
|
@ -13,9 +13,9 @@ namespace AK {
|
||||||
|
|
||||||
template<typename Container, typename ValueType>
|
template<typename Container, typename ValueType>
|
||||||
constexpr bool all_of(
|
constexpr bool all_of(
|
||||||
const SimpleIterator<Container, ValueType>& begin,
|
SimpleIterator<Container, ValueType> const& begin,
|
||||||
const SimpleIterator<Container, ValueType>& end,
|
SimpleIterator<Container, ValueType> const& end,
|
||||||
const auto& predicate)
|
auto const& predicate)
|
||||||
{
|
{
|
||||||
for (auto iter = begin; iter != end; ++iter) {
|
for (auto iter = begin; iter != end; ++iter) {
|
||||||
if (!predicate(*iter)) {
|
if (!predicate(*iter)) {
|
||||||
|
|
|
@ -14,9 +14,9 @@ namespace AK {
|
||||||
|
|
||||||
template<typename Container, typename ValueType>
|
template<typename Container, typename ValueType>
|
||||||
constexpr bool any_of(
|
constexpr bool any_of(
|
||||||
const SimpleIterator<Container, ValueType>& begin,
|
SimpleIterator<Container, ValueType> const& begin,
|
||||||
const SimpleIterator<Container, ValueType>& end,
|
SimpleIterator<Container, ValueType> const& end,
|
||||||
const auto& predicate)
|
auto const& predicate)
|
||||||
{
|
{
|
||||||
return find_if(begin, end, predicate) != end;
|
return find_if(begin, end, predicate) != end;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue