First
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
}
|
||||
Reference in New Issue
Block a user