• Docs >
  • Ripple API >
  • Template Struct ArrayTraits< VecImpl< T, Size, LayoutType > >
Shortcuts

Template Struct ArrayTraits< VecImpl< T, Size, LayoutType > >

Struct Documentation

template<typename T, typename Size, typename LayoutType>
struct ripple::ArrayTraits<VecImpl<T, Size, LayoutType>>

Specialization of the ArrayTraits class for the VecImpl class.

Template Parameters
  • T: The type of the data for the vec.

  • Size: The size of the vector.

  • Layout: The storage layout of the vector.

Public Types

using Value = std::decay_t<T>

The value type stored in the array.

using Layout = LayoutType

Defines the type of the layout for the array.

using Array = VecImpl<Value, Size, Layout>

Defines the type of an array of the value type.

template<size_t Elements, typename L = ContiguousOwned>
using ImplType = VecImpl<Value, Num<Elements>, L>

A type with the same type as the implementation with the given number of elements and layout.

Template Parameters
  • Elements: The number of elements in the vector.

  • L: The layout for the the vector.

Public Static Attributes

constexpr auto size = Size::value

Returns the number of elements in the array.

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