Functor representing the overloads for the for_each function.
More...
#include <CeresEngine/Foundation/Algorithm/ForEach.hpp>
|
| class | Graph |
| | Internal class that takes care of the for-eaching tasks and its incomplete tasks. More...
|
| |
|
template<class I , class S , class Fun >
requires ( // clang-format off traits::is_input_iterator_v<I> && traits::is_sentinel_for_v<S, I> && traits::is_indirectly_unary_invocable_v<Fun, I> && std::is_copy_constructible_v<Fun> // clang-format on ) |
| static constexpr void | run (I first, S last, Fun f) |
| | Complete overload of the for_each algorithm.
|
| |
template<class E , class P , class I , class S , class Fun >
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_unary_invocable_v<Fun, I> && std::is_copy_constructible_v<Fun> // clang-format on ) |
| static Async | run (const E &executor, P p, I first, S last, Fun f) |
| | Complete overload of the for_each algorithm.
|
| |
|
| constexpr decltype(auto) | operator() (const E &executor, P p, I first, S last, Fun f) const |
| |
| constexpr decltype(auto) | operator() (const E &executor, P p, R &&r, Fun f) const |
| | Overload for Ranges.
|
| |
| constexpr decltype(auto) | operator() (P p, I first, S last, Fun f) const |
| | Overload for Iterators / default parallel executor.
|
| |
| constexpr decltype(auto) | operator() (P p, R &&r, Fun f) const |
| | Overload for Ranges / default parallel executor.
|
| |
| constexpr decltype(auto) | operator() (const E &executor, I first, S last, Fun f) const |
| | Overload for Iterators / default partitioner.
|
| |
| constexpr decltype(auto) | operator() (const E &executor, R &&r, Fun f) const |
| | Overload for Ranges / default partitioner.
|
| |
| constexpr decltype(auto) | operator() (I first, S last, Fun f) const |
| | Overload for Iterators / default executor / default partitioner.
|
| |
| constexpr decltype(auto) | operator() (R &&r, Fun f) const |
| | Overload for Ranges / default executor / default partitioner.
|
| |
Functor representing the overloads for the for_each function.
◆ run() [1/2]
Complete overload of the for_each algorithm.
- Template Parameters
-
| E | Executor type |
| P | Partitioner type |
| I | Iterator type |
| S | Sentinel iterator type |
| Fun | Function type |
- Parameters
-
| ex | Executor |
| p | Partitioner |
| first | Iterator to first element in the range |
| last | Iterator to (last + 1)-th element in the range |
| f | Function function template for_each |
◆ run() [2/2]
|
|
inlinestaticconstexprprivate |
Complete overload of the for_each algorithm.
- Template Parameters
-
| I | Iterator type |
| S | Sentinel iterator type |
| Fun | Function type |
- Parameters
-
| first | Iterator to first element in the range |
| last | Iterator to (last + 1)-th element in the range |
| f | Function function template for_each |
◆ UnaryAlgorithmFunctor< ForEachAlgorithmFunctor >
The documentation for this class was generated from the following file:
- /Users/Rogiel/Developer/CeresEngine/Engine/Sources/CeresEngine/Foundation/Algorithm/ForEach.hpp