Shortcuts

Template Struct BasicTuple

Inheritance Relationships

Base Type

Struct Documentation

template<typename ...Ts>
struct ripple::detail::BasicTuple : public ripple::detail::TupleStorage<std::make_index_sequence<sizeof...(Ts)>, Ts...>

A basic tuple class, which is essentially just a cleaner interface for TupleStorage.

The types are laid out in memory in the same order in which they are present in the varaidic parameter pack,

See

TupleStorage.

Template Parameters
  • Ts: The types of the tuple elements.

Public Types

using IndexSeq = std::make_index_sequence<sizeof...(Ts)>

Alias for the index sequence.

using Base = TupleStorage<IndexSeq, Ts...>

Alias for the base type of the Tuple.

Public Functions

constexpr BasicTuple() = default

Default constructor to create an uninitialized tuple.

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

Creates a BasicTuple from a variadic list of elements.

Note

This overload is called if the the elements are forwarding reference types.

Parameters
  • elements: The elements for the tuple.

Template Parameters
  • Types: The types of the elements for the tuple.

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

Creates a BasicTuple from a variadic list of elements.

Note

This overload is called if the the elements are constant lvalue reference types.

Parameters
Template Parameters
  • Types: The types of the elements for the BasicTuple.

Public Static Attributes

constexpr size_t elements = Base::elements

Defines the number of elements in the tuple.

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