Template Struct is_variable_in_pack

Struct Documentation

template<typename...>
struct is_variable_in_pack

Test if a given variable is included in the template parameter pack types.

This version accepts an empty parameter pack, and is used to terminate the recursive template parameter pack expansion.

This would be much easier to write in C++17 using ‘if constexpr (sizeof…(Ts) > 0)’

Param variable:

[in] The variable to check against the template parameter pack

Return:

True if the variable’s type is part of the template parameter pack, false otherwise

Public Static Functions

static inline bool value(const fuse_core::Variable&)