|
RAJA
RAJA provides a collection of platform portability abstractions for C++ HPC applications.
|
A view of a single object repeated a certain number of times. More...
#include <RepeatView.hpp>
Classes | |
| struct | iterator |
Public Member Functions | |
| RepeatView ()=delete | |
| constexpr | RepeatView (T const &value, size_t bound) |
| constexpr | RepeatView (T &&value, size_t bound) |
| constexpr T const & | front () const |
| constexpr T const & | back () const |
| constexpr T const & | operator[] (size_t RAJA_UNUSED_ARG(index)) const |
| constexpr iterator | begin () const |
| constexpr iterator | cbegin () const |
| constexpr iterator | end () const |
| constexpr iterator | cend () const |
| constexpr | operator bool () const |
| constexpr bool | empty () const |
| constexpr size_t | size () const |
A view of a single object repeated a certain number of times.
Creates a view or container object given an object and length. Allows use of container interface functions if you want to repeat a single object.
For example:
// Create a repeat view object for the int 2 repeated int_len times
RepeatView<int> int_repeated(2, int_len);
// Use with RAJA for_each
RAJA::for_each(int_repeated, [&](int val) {
sum += val;
});
Based on the std::ranges::repeat_view template. Differs in that it does not support: compile time extents unbounded extents
|
delete |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineexplicitconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |