Shortcuts

Template Struct StorageElementTraits< Vector< T, Size > >

Struct Documentation

template<typename T, size_t Size>
struct ripple::StorageElementTraits<Vector<T, Size>>

Specialization for a vector implementation.

Template Parameters
  • T: The type of the data in the vector.

  • Sizes: The number of elements in the vector.

Public Types

using Value = std::decay_t<T>

Defines the value type of the element, which is the type to store.

Public Static Attributes

constexpr auto num_elements = Size

Defines the number of values of the element to store.

constexpr auto byte_size = sizeof(Value) * num_elements

Defines the byte size required to allocate the element.

constexpr auto align_size = alignof(Value)

Defines the alignment requirement for the storage.

constexpr bool is_vec_element = true

Defines that the type is a vector element.

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