STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Types | Static Public Attributes
stapl::tuple_ops::index_of_max< Tuple > Struct Template Reference

Metafunction to compute the index of the maximum integral value in a compile-time tuple. More...

Public Types

using type = std::integral_constant< std::size_t, value >
 

Static Public Attributes

static constexpr std::size_t value
 

Detailed Description

template<typename Tuple>
struct stapl::tuple_ops::index_of_max< Tuple >

Metafunction to compute the index of the maximum integral value in a compile-time tuple.

For example, given the input tuple< integral_constant<int, 0>, integral_constant<int, 2>, integral_constant<int, 1>> would be the value 1, as the max value (2) is at index 1.

Template Parameters
TupleThe tuple of compile time constants

Member Data Documentation

◆ value

template<typename Tuple >
constexpr std::size_t stapl::tuple_ops::index_of_max< Tuple >::value
static
Initial value:
= detail::index_of_max_impl<
Tuple,
std::tuple_size<Tuple>::type::value-1,
std::tuple_element<
std::tuple_size<Tuple>::type::value-1, Tuple
>::type::value,
std::tuple_size<Tuple>::type::value-1
>::value

The documentation for this struct was generated from the following file: