xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.core
include
xtd
ranges
views
range_view_adapter.hpp
Go to the documentation of this file.
1
4
#pragma once
5
7
namespace
xtd
{
9
namespace
ranges
{
11
namespace
views
{
19
template
<
typename
range_t>
20
class
__xtd_range_view_adapter__ :
public
xtd::istringable<__xtd_range_view_adapter__<range_t>> {
21
public
:
22
explicit
__xtd_range_view_adapter__(range_t&& range) :
range
(std::move(
range
)) {}
23
auto
begin
() {
return
range
.begin();}
24
auto
end
() {
return
range
.end();}
25
auto
begin
()
const
{
return
range
.begin();}
26
auto
end
()
const
{
return
range
.end();}
27
auto
cbegin()
const
{
return
range
.begin();}
28
auto
cend()
const
{
return
range
.end();}
29
xtd::string
to_string
()
const override
{
return
string::format(
"{}"
, range);}
30
private
:
31
range_t
range
;
32
};
34
}
35
}
36
}
xtd::ranges::views::range
auto range(type_t count)
Generates a sequence of integral numbers within a specified range.
Definition
range.hpp:39
xtd::string
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition
__string_definitions.hpp:43
xtd::io::seek_origin::begin
@ begin
Specifies the beginning of a stream.
Definition
seek_origin.hpp:18
xtd::console_key::end
@ end
The END key.
Definition
console_key.hpp:42
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
xtd::to_string
auto to_string() const noexcept -> xtd::string override
Returns the string representation of this xtd::read_only_span <type_t> object.
Definition
read_only_span.hpp:354
Generated on
for xtd by
Gammasoft
. All rights reserved.