Distributed Ranges
Loading...
Searching...
No Matches
include
dr
sp
range_adaptors.hpp
1
// SPDX-FileCopyrightText: Intel Corporation
2
//
3
// SPDX-License-Identifier: BSD-3-Clause
4
5
#pragma once
6
7
#include <dr/sp/views/standard_views.hpp>
8
#include <dr/sp/zip_view.hpp>
9
10
namespace
dr::sp {
11
12
template
<rng::range R>
auto
enumerate(R &&r) {
13
auto
i = rng::views::iota(uint32_t(0), uint32_t(rng::size(r)));
14
return
dr::sp::zip_view
(i, r);
15
}
16
17
}
// namespace dr::sp
dr::sp::zip_view
zip
Definition:
zip_view.hpp:108
Generated by
1.9.6