Helper metafunction to compute the index of maximum value.
More...
|
| static constexpr std::size_t | value |
| |
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
-
| Tuple | The tuple of compile time constants |
| I | Current index we are iterating on |
| Max | Max value that we have seen so far |
| MaxIndex | Index of the max value that we have seen so far |
◆ value
template<typename Tuple , int I, std::size_t Max, std::size_t MaxIndex>
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: