Shortcuts

Template Struct ContigStorageHelper::Vec

Nested Relationships

This struct is a nested type of Template Struct ContigStorageHelper.

Struct Documentation

template<size_t N>
struct ripple::detail::ContigStorageHelper::Vec

Small vector type for constexpr constexts which can be used on both the host and the device to get the offset to the types at compile time.

Template Parameters
  • N: The number of elements for the vector.

Public Functions

template<typename ...As>
constexpr Vec(As&&... as) noexcept

Constructor to set the values of the vector elements.

Parameters
  • as: The values for the vector.

Template Parameters
  • As: The type of the elements.

constexpr auto operator[](size_t i) const -> size_t

Overload of subscript operator to get the ith value.

Return

The value of the ith element.

Parameters
  • i: The index of the element to get.

Public Members

size_t data[N] = {}

Data for the vector.

Docs

Access comprehensive developer documentation for Ripple

View Docs

Tutorials

Get tutorials to help with understand all features

View Tutorials

Examples

Find examples to help get started

View Examples