template<class type_t>
struct xtd::collections::generic::enumerable< type_t >
Represents the enumerable concept.
- Definition
template<class value_t>
Exposes the enumerator, which supports a simple iteration over a collection of a specified type.
Definition ienumerable.hpp:40
Definition enumerable.hpp:17
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
- Header
#include <xtd//collections/generic/enumerable>
- Namespace
- xtd
- Library
- xtd.core
- Examples
- The following code shows how to use xtd::collections::generic::enumerable concept
#include <xtd/xtd>
co_yield 15;
co_yield 11;
co_yield 13;
co_yield 14;
co_yield 12;
}
template<collections::generic::enumerable enumerable_t>
co_yield item;
}
auto main() -> int {
for (
auto item : enumerate(
array {5, 1, 3, 4, 2}).select(_ * 2).order())
for (auto item : enumerate(list {10, 6, 8, 9, 7}).select(_ * 3).order())
println("{,2}", item);
for (auto item : enumerate(int_generator()).select(_ * 4).order())
println("{,2}", item);
}
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:64
Represents an enumerable enumerable_generator.
Definition enumerable_generator.hpp:24
void println(FILE *file)
Writes the current line terminator to the file output stream using the specified format information.
Definition println.hpp:14
The documentation for this struct was generated from the following file: