Abstract Data Type (ADT) for any containers representable with a start and end iterator.
More...
|
| range (IteratorType begin, IteratorType end) |
|
auto CUSPATIAL_HOST_DEVICE | begin () |
| Return the start iterator to the range.
|
|
auto CUSPATIAL_HOST_DEVICE | end () |
| Return the end iterator to the range.
|
|
auto CUSPATIAL_HOST_DEVICE | size () |
| Return the size of the range.
|
|
template<typename IndexType > |
auto &CUSPATIAL_HOST_DEVICE | operator[] (IndexType i) |
| Access the i th element in the range.
|
|
template<typename IteratorType>
class cuspatial::range< IteratorType >
Abstract Data Type (ADT) for any containers representable with a start and end iterator.
This is similar to a span, except that the iterators can be composed of generators.
- Note
- Although this structure can be used on device and host code, this structure does not provide implicit device-host transfer. It is up to developer's prudence not to access device memory from host or the reverse.
- Template Parameters
-
Type | of both start and end iterator. IteratorType must satisfy LegacyRandomAccessIteratorLinkLRAI. |
Definition at line 43 of file range.cuh.