mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05:00
AK: Add nodiscard
attribute to AnyOf functions
This commit is contained in:
parent
318bee03d8
commit
49042bffe9
1 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@
|
|||
namespace AK {
|
||||
|
||||
template<typename TEndIterator, IteratorPairWith<TEndIterator> TIterator>
|
||||
constexpr bool any_of(
|
||||
[[nodiscard]] constexpr bool any_of(
|
||||
TIterator const& begin,
|
||||
TEndIterator const& end,
|
||||
auto const& predicate)
|
||||
|
@ -22,7 +22,7 @@ constexpr bool any_of(
|
|||
}
|
||||
|
||||
template<IterableContainer Container>
|
||||
constexpr bool any_of(Container&& container, auto const& predicate)
|
||||
[[nodiscard]] constexpr bool any_of(Container&& container, auto const& predicate)
|
||||
{
|
||||
return any_of(container.begin(), container.end(), predicate);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue