Shortcuts

Template Struct StorageElementTraits

Struct Documentation

template<typename T>
struct ripple::StorageElementTraits

The StorageElementTraits struct defines traits for elements which are stored by the various storage implementations.

This is the default case which is used to define the storage traits for any type that does not have specialized storage.

Template Parameters
  • T: The type to specify the storage element traits for.

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

Defines the number of values of the element to store.

constexpr auto byte_size = sizeof(Value)

Defines the byte size required to allocate the element.

constexpr auto align_size = alignof(Value)

Defines the alignment size required for the type.

constexpr bool is_vec_element = false

Defines that the type is not a storage 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