FleCSI User API Version: 2.3.0
 
Loading...
Searching...
No Matches
substring_view< R > Struct Template Reference

A view of part of a range. More...

Public Member Functions

constexpr substring_view (R r, difference_type i, difference_type n)
 Select a substring of a range.
 

Detailed Description

template<class R>
struct flecsi::util::substring_view< R >

A view of part of a range.

Analogous to a combination of std::take_view and std::drop_view from C++20.

This class is supported for GPU execution.

Constructor & Destructor Documentation

◆ substring_view()

template<class R >
constexpr substring_view ( r,
difference_type  i,
difference_type  n 
)
constexpr

Select a substring of a range.

Parameters
rinput (stored in this object)
istarting index
nnumber of elements (must be in bounds)