Template Function iox::cxx::holds_alternative

Function Documentation

template<typename T, typename ...Types>
constexpr bool iox::cxx::holds_alternative(const variant<Types...> &variant) noexcept

returns true if the variant holds a given type T, otherwise false