Wildmeshing Toolkit
Loading...
Searching...
No Matches
as_variant_type.hpp
Go to the documentation of this file.
1#pragma once
2#include <tuple>
3#include <variant>
4
5
7
8
9// given a set of types, a tuple without the voids and makes unique types
10namespace detail {
11template <typename T>
13{
14};
15template <typename... Ts>
16struct as_variant_type<std::tuple<Ts...>>
17{
18 using type = std::variant<Ts...>;
19};
20
21} // namespace detail
22
23// from a tuple input
24template <typename T>
26
27
28} // namespace wmtk::utils::metaprogramming::tuple
29
typename detail::as_variant_type< T >::type as_variant_type_t