xtd 0.2.0
Loading...
Searching...
No Matches
enumerable.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "ienumerable.hpp"
6#include "../../raw_type"
7#include <concepts>
8
10namespace xtd {
12 namespace collections {
14 namespace generic {
15 // Since Doxygen does not work properly with the C++20 concept, the documentation for this concept is declared in xtd/collections/generic/enumerable.hpp
16 template<class type_t>
17 concept enumerable =
18 requires {typename xtd::raw_type<type_t>::value_type;} &&
20 }
21 }
22}
23
Exposes the enumerator, which supports a simple iteration over a collection of a specified type.
Definition ienumerable.hpp:40
Definition enumerable.hpp:17
Contains xtd::collections::generic::enumerable_value_type alias.
Contains xtd::collections::generic::ienumerable <type_t> interface.
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
The xtd::collections::generic namespace contains interfaces and classes that define generic collectio...
Definition comparer.hpp:16
The xtd::collections namespace contains interfaces and classes that define various collections of obj...
Definition any_pair.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8