• Docs >
  • Ripple API >
  • Template Struct TupleStorage< std::index_sequence< Is… >, Ts… >
Shortcuts

Template Struct TupleStorage< std::index_sequence< Is… >, Ts… >

Inheritance Relationships

Base Type

Struct Documentation

template<size_t... Is, typename ...Ts>
struct ripple::detail::TupleStorage<std::index_sequence<Is...>, Ts...> : public ripple::detail::Element<Is, Ts>

Specializatiion of the tuple storage implementation.

Template Parameters
  • Is: The indices for the locations of the elements.

  • Ts: The types of the elements.

Public Functions

constexpr TupleStorage() = default

Default constructor.

template<typename ...Types>
constexpr TupleStorage(Types&&... elements) noexcept

Constructor to set the elements of the tuple storage.

Note

This overload is selected when the elements are forwarding reference types.

Parameters
  • elements: The elements to use to set the tuple.

Template Parameters
  • Types: The types of the elements.

template<typename ...Types>
TupleStorage(const Types&... elements) noexcept

Constructor to set the elements of the tuple storage.

Note

This overload is selected when the elements are const lvalue references, and copies the elements.

Parameters
  • elements: The elements to use to set the tuple.

Template Parameters
  • Types: The types of the elements.

Public Static Attributes

constexpr size_t elements = sizeof...(Ts)

Defines the size (number of elements) of the tuple storage.

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