xtd 0.2.0
__enumerable_collection.hpp
Go to the documentation of this file.
1
4#pragma once
6#if !defined(__XTD_CORE_INTERNAL__)
7#error "Do not include this file: Internal use only"
8#endif
10
11#include "../collections/generic/enumerator.hpp"
12#include <vector>
13
15namespace xtd::linq {
16 class enumerable;
17};
18
19template<class type_t>
20struct __opaque_xtd_linq_enumerable_collection__ : xtd::collections::generic::ienumerable<type_t> {
23 }
24
25private:
26 friend class xtd::linq::enumerable;
27 __opaque_xtd_linq_enumerable_collection__() = default;
28 std::vector<type_t> items;
29};
Exposes the enumerator, which supports a simple iteration over a collection of a specified type.
Definition ienumerable.hpp:36
virtual xtd::collections::generic::enumerator< type_t > get_enumerator() const =0
Returns an enumerator that iterates through a collection.
Provides a set of static methods for querying objects that implement ienumerable <type_t>.
Definition enumerable.hpp:55
Provides classes and interfaces that support queries that use Language-Integrated Query (LINQ).
Definition enumerable.hpp:38
Supports a simple iteration over a generic collection.
Definition enumerator.hpp:38