STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Static Public Attributes
stapl::tuple_ops::detail::index_of_max_impl< Tuple, I, Max, MaxIndex > Struct Template Reference

Helper metafunction to compute the index of maximum value. More...

Static Public Attributes

static constexpr std::size_t value
 

Detailed Description

template<typename Tuple, int I, std::size_t Max, std::size_t MaxIndex>
struct stapl::tuple_ops::detail::index_of_max_impl< Tuple, I, Max, MaxIndex >

Helper metafunction to compute the index of maximum value.

Template Parameters
TupleThe tuple of compile time constants
ICurrent index we are iterating on
MaxMax value that we have seen so far
MaxIndexIndex of the max value that we have seen so far

Member Data Documentation

◆ value

template<typename Tuple , int I, std::size_t Max, std::size_t MaxIndex>
constexpr std::size_t stapl::tuple_ops::detail::index_of_max_impl< Tuple, I, Max, MaxIndex >::value
static
Initial value:
= std::conditional<
std::tuple_element<I, Tuple>::type::value <= Max,
index_of_max_impl<Tuple, I-1, Max, MaxIndex>,
index_of_max_impl<Tuple, I-1,
std::tuple_element<I, Tuple>::type::value, I>
>::type::value

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