Shortcuts

Template Struct ArrayTraits

Struct Documentation

template<typename T>
struct ripple::ArrayTraits

This structs defines traits for arrays.

This implementation is the default implementation and is for a type which is not an array. It needs to be specialzied for any type which does implement the interface.

Template Parameters
  • T: The type to get the array traits for.

Public Types

using Value = std::decay_t<T>

The value type for the array.

using Layout = ContiguousOwned

Defines the type of the layout for the array.

using Array = VecImpl<Value, Num<1>, Layout>

Defines the type for an array of type T.

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 = 1

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