/* * Copyright (c) 2020, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include namespace AK { template constexpr bool all_of( const SimpleIterator& begin, const SimpleIterator& end, const auto& predicate) { for (auto iter = begin; iter != end; ++iter) { if (!predicate(*iter)) { return false; } } return true; } } using AK::all_of;