Files
jeanlemotan 8297b0b45f First
2024-07-02 18:06:33 +02:00

31 lines
757 B
C++

#pragma once
#include "tl/detail/prologue.h"
#include "tl/algorithm.h"
#include "tl/iterator.h"
namespace tl
{
//////////////////////////////////////////////////////////////////////////
template <typename C, typename Pred>
bool all_of(const C& c, Pred&& pred) noexcept
{
return eastl::all_of(tl::begin(c), tl::end(c), std::forward<Pred>(pred));
}
template <typename C, typename Pred>
bool any_of(const C& c, Pred&& pred) noexcept
{
return eastl::any_of(tl::begin(c), tl::end(c), std::forward<Pred>(pred));
}
template <typename C, typename Pred>
bool none_of(const C& c, Pred&& pred) noexcept
{
return eastl::none_of(tl::begin(c), tl::end(c), std::forward<Pred>(pred));
}
//////////////////////////////////////////////////////////////////////////
}