Template Function iox::algorithm::doesContainValue(const T, const T, const ValueList…)

Function Documentation

template<typename T, typename ...ValueList>
inline constexpr bool iox::algorithm::doesContainValue(const T value, const T firstValueListEntry, const ValueList... remainingValueListEntries) noexcept

Returns true if value of T is found in the ValueList, otherwise false.

Template Parameters:
  • T – type of the value to check

  • ValueList – is a list of values to check for a specific value

Parameters:
  • value[in] to look for in the ValueList

  • firstValueListEntry[in] is the first variadic argument of ValueList

  • remainingValueListEntries[in] are the remaining variadic arguments of ValueList