Template Struct ContigStorageHelper::Vec¶
Defined in File storage_element_traits.hpp
Nested Relationships¶
This struct is a nested type of Template Struct ContigStorageHelper.
Struct Documentation¶
-
template<size_t
N>
structripple::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>
constexprVec(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.