• Docs >
  • Ripple API >
  • Template Struct StorageAsImpl< Storage, std::tuple< T, Ts… >, std::tuple< Us… > >
Shortcuts

Template Struct StorageAsImpl< Storage, std::tuple< T, Ts… >, std::tuple< Us… > >

Struct Documentation

template<typename Storage, typename T, typename ...Ts, typename ...Us>
struct ripple::detail::StorageAsImpl<Storage, std::tuple<T, Ts...>, std::tuple<Us...>>

Specialization to compare the type T against the Storage and replace it if necessary.

Template Parameters
  • Storage: The desired storage layout.

  • T: The type to try and replace with Storage.

  • Ts: A type list of untried types.

  • Us: A type list of tried types.

Public Types

using Type = std::conditional_t<IsStorageLayout<T>::value, std::tuple<Us..., Storage, Ts...>, typename StorageAsImpl<Storage, std::tuple<Ts...>, std::tuple<Us..., T>>::Type>

Defines the list of types for the type to replace with Storage.

If T is a StorageLayout type, replaces T with Storage, otherwise otherwise appends T to the list of checked types and continues.

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