So you could have a struct or class with one std::variant field and some methods which can match on the type of the variant. But it would be kind of clunky.
So you could have a struct or class with one std::variant field and some methods which can match on the type of the variant. But it would be kind of clunky.