26 template<xtd::
integer
integer_t>
27 static auto for_(integer_t from_inclusive, integer_t to_exclusive,
auto&& body) ->
void {
31 template<xtd::
integer
integer_t>
36 template<xtd::
integer
integer_t>
41 template<xtd::
integer
integer_t>
46 template<xtd::iterable source_t>
47 static auto for_each(source_t&& source,
auto&& body) ->
void {
51 template<xtd::iterable source_t>
61 template<xtd::iterable source_t>
66 for(
const auto& item : source)
78 template<xtd::iterable source_t>
83 for(
const auto& item : source)
90 template<
typename type_t>
91 static auto for_each(std::initializer_list<type_t>&& source,
auto&& body) ->
void {
95 template<
typename type_t>
100 template<
typename type_t>
105 template<
typename type_t>
134 template<
typename collection_t>
135 static auto invoke(collection_t&& actions) ->
void {
148 template<
typename ...args_t>
149 static auto invoke(args_t&&... args) ->
void {
invoke(
xtd::array<xtd::action<>> {xtd::action<> {std::forward<args_t>(args)}...});}
153 for (
const auto& action : actions)
155 return tasks.to_array();
158 template<
typename collection_t>
161 for (
const auto& action : actions)
163 return tasks.to_array();
166 template<
typename ...args_t>
Contains xtd::action_callable concept.
Contains xtd::array class.
Represent a polymorphic wrapper capable of holding any type.
Definition any_object.hpp:30
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:64
Represents a strongly typed list of objects that can be accessed by index. Provides methods to search...
Definition list.hpp:84
static auto range(integer_t count) -> xtd::collections::generic::enumerable_generator< integer_t >
Generates a sequence of integral numbers within a specified range.
Propagates notification that operations should be canceled.
Definition cancellation_token.hpp:39
Provides support for creating and scheduling Task objects.
Definition parallel.hpp:24
static auto for_each_async(source_t &&source, auto &&body) -> xtd::threading::tasks::task<>
Executes a for-each operation on an xtd::iterable in which iterations may run in parallel.
Definition parallel.hpp:62
static auto invoke(collection_t &&actions) -> void
Executes each of the provided actions, possibly in parallel.
Definition parallel.hpp:135
static auto for_each_async(source_t &&source, auto &&body, const xtd::threading::cancellation_token &cancellation_token) -> xtd::threading::tasks::task<>
Executes a for-each operation on an xtd::iterable in which iterations may run in parallel.
Definition parallel.hpp:79
static auto invoke(args_t &&... args) -> void
Executes each of the provided actions, possibly in parallel.
Definition parallel.hpp:149
static auto invoke(xtd::array< xtd::action<> > &&actions) -> void
Executes each of the provided actions, possibly in parallel.
Definition parallel.hpp:121
Represents an asynchronous operation.
Definition task_result.hpp:20
xtd::raw_type< decltype(*std::begin(std::declval< iterable_t & >()))> iterable_value_type
Represents the orward iterable value type.
Definition iterable_value_type.hpp:29
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.hpp:38
std::remove_cvref_t< value_t > raw_type
Represents a raw type alias equivalent to std::remove_cvref_t<value_t>.
Definition raw_type.hpp:25
auto as(any_object &o) -> type_t
Casts a type into another type.
Definition __as_any_object.hpp:60
Contains xtd::integer concept.
Contains xtd::collections::generic::list <type_t> class.
The xtd::threading::tasks namespace provides types that simplify the work of writing concurrent and a...
Definition itask.hpp:14
The xtd::threading namespace provides classes and interfaces that enable multithreaded programming....
Definition abandoned_mutex_exception.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Contains xtd::static_object class.
Contains xtd::threading::tasks::task_factory <result_t> class.