This commit is contained in:
jeanlemotan
2024-07-02 18:06:33 +02:00
commit 8297b0b45f
157 changed files with 24865 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
#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));
}
//////////////////////////////////////////////////////////////////////////
}