CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::FindAlgorithmFunctor Class Reference

Functor representing the overloads for the find function. More...

#include <CeresEngine/Foundation/Algorithm/Find.hpp>

Inheritance diagram for CeresEngine::FindAlgorithmFunctor:
CeresEngine::ValueCompareAlgorithmFunctor< FindAlgorithmFunctor >

Static Private Member Functions

template<class E , class P , class I , class S , class T >
requires ( // clang-format off traits::is_executor_v<E> && traits::is_partitioner_v<P, I, S> && traits::is_input_iterator_v<I> && traits::is_sentinel_for_v<S, I> && traits::is_indirectly_binary_invocable_v<std::equal_to<>, T *, I> // clang-format on )
static I run (I first, S last, const T &v)
 Complete overload of the find algorithm.
 
template<class E , class P , class I , class S , class T >
requires ( // clang-format off traits::is_executor_v<E> && traits::is_partitioner_v<P, I, S> && traits::is_input_iterator_v<I> && traits::is_sentinel_for_v<S, I> && traits::is_indirectly_binary_invocable_v<std::equal_to<>, T *, I> // clang-format on )
static Async< Irun (const E &executor, P p, I first, S last, const T &v)
 Complete overload of the find algorithm.
 

Private Attributes

friend ValueCompareAlgorithmFunctor< FindAlgorithmFunctor >
 

Additional Inherited Members

- Public Member Functions inherited from CeresEngine::ValueCompareAlgorithmFunctor< FindAlgorithmFunctor >
constexpr decltype(auto) operator() (const E &executor, P p, I first, S last, T f) const
 Complete overload.
 
constexpr decltype(auto) operator() (const E &executor, P p, R &&r, T f) const
 Overload for Ranges.
 
constexpr decltype(auto) operator() (P p, I first, S last, T f) const
 Overload for Iterators / default parallel executor.
 
constexpr decltype(auto) operator() (P p, R &&r, T f) const
 Overload for Ranges / default parallel executor.
 
constexpr decltype(auto) operator() (const E &executor, I first, S last, T f) const
 Overload for Iterators / default partitioner.
 
constexpr decltype(auto) operator() (const E &executor, R &&r, T f) const
 Overload for Ranges / default partitioner.
 
constexpr decltype(auto) operator() (I first, S last, T f) const
 Overload for Iterators / default executor / default partitioner.
 
constexpr decltype(auto) operator() (R &&r, T f) const
 Overload for Ranges / default executor / default partitioner.
 

Detailed Description

Functor representing the overloads for the find function.

Member Function Documentation

◆ run() [1/2]

static Async< I > CeresEngine::FindAlgorithmFunctor::run ( const E executor,
P  p,
I  first,
S  last,
const T v 
)
inlinestaticprivate

Complete overload of the find algorithm.

Template Parameters
EExecutor type
PPartitioner type
IIterator type
SSentinel iterator type
TValue to compare
Parameters
exExecutor
pPartitioner
firstIterator to first element in the range
lastIterator to (last + 1)-th element in the range
vValue

◆ run() [2/2]

static I CeresEngine::FindAlgorithmFunctor::run ( I  first,
S  last,
const T v 
)
inlinestaticprivate

Complete overload of the find algorithm.

Template Parameters
IIterator type
SSentinel iterator type
TValue to compare
Parameters
firstIterator to first element in the range
lastIterator to (last + 1)-th element in the range
vValue

Member Data Documentation

◆ ValueCompareAlgorithmFunctor< FindAlgorithmFunctor >

friend CeresEngine::FindAlgorithmFunctor::ValueCompareAlgorithmFunctor< FindAlgorithmFunctor >
private

The documentation for this class was generated from the following file: