xtd 0.2.0
Loading...
Searching...
No Matches
range.hpp
Go to the documentation of this file.
1
4#pragma once
5
6#define __XTD_STD_INTERNAL__
8#undef __XTD_STD_INTERNAL__
10
12#if defined(__xtd__cpp_lib_ranges)
14
16namespace xtd {
18 namespace ranges {
20 namespace views {
38 template<class type_t>
39 [[nodiscard]] auto range(type_t count) {
40 return xtd::linq::enumerable::range(count);
41 }
42
61 template<class type_t>
62 [[nodiscard]] auto range(type_t start, type_t count) {
63 return xtd::linq::enumerable::range(start, count);
64 }
65
85 template<class type_t>
86 [[nodiscard]] auto range(type_t start, type_t count, type_t step) {
87 return xtd::linq::enumerable::range(start, count, step);
88 }
89 }
90 }
91}
93#endif
static auto range(type_t count)
Generates a sequence of integral numbers within a specified range.
Definition enumerable.hpp:862
auto range(type_t count)
Generates a sequence of integral numbers within a specified range.
Definition range.hpp:39
Contains xtd::linq::enumerable <type_t> class.
The view namesapce contains range views, lightweight objects that indirectly represent iterable seque...
Definition distinct.hpp:20
The ranges namespace is an extension and generalization of the xtd::linq that makes them more powerfu...
Definition distinct.hpp:18
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8