xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.core
include
xtd
ranges
views
range.hpp
Go to the documentation of this file.
1
4
#pragma once
5
6
#define __XTD_STD_INTERNAL__
7
#include "
../../internal/__xtd_std_version.hpp
"
8
#undef __XTD_STD_INTERNAL__
9
#include "
../../linq/enumerable.hpp
"
10
12
#if defined(__xtd__cpp_lib_ranges)
14
16
namespace
xtd
{
18
namespace
ranges
{
20
namespace
views
{
38
template
<
typename
type_t>
39
[[nodiscard]]
auto
range
(type_t count) {
40
return
xtd::linq::enumerable::range
(count);
41
}
42
61
template
<
typename
type_t>
62
[[nodiscard]]
auto
range
(type_t start, type_t count) {
63
return
xtd::linq::enumerable::range
(start, count);
64
}
65
85
template
<
typename
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
__xtd_std_version.hpp
xtd::linq::enumerable::range
static auto range(type_t count)
Generates a sequence of integral numbers within a specified range.
Definition
enumerable.hpp:862
xtd::ranges::views::range
auto range(type_t count)
Generates a sequence of integral numbers within a specified range.
Definition
range.hpp:39
enumerable.hpp
Contains xtd::linq::enumerable <type_t> class.
xtd::ranges::views
The view namesapce contains range views, lightweight objects that indirectly represent iterable seque...
Definition
distinct.hpp:20
xtd::ranges
The ranges namespace is an extension and generalization of the xtd::linq that makes them more powerfu...
Definition
distinct.hpp:18
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
abstract_object.hpp:8
Generated on
for xtd by
Gammasoft
. All rights reserved.