Shortcuts

Template Struct IndexOf< I, T, U, Ts… >

Struct Documentation

template<int I, typename T, typename U, typename ...Ts>
struct ripple::detail::IndexOf<I, T, U, Ts...>

Decalration of a class to determine the index of the type T in the Ts pack.

Specialization for the general case.

Template Parameters
  • I: The current index of the search.

  • T: The type to find.

  • U: The type to compare against T.

  • Ts: The rest of the types to search through.

Public Static Attributes

constexpr auto value = std::is_same_v<T, U> ? I : IndexOf<I + 1, T, Ts...>::value

Returns the value I if T and U match, otherwise continues the search.

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