From what I understand, you want a type that can hold several possible types. This is a union in C/C++.
From C++17, you can use en.cppreference.com/w/cpp/utility/...
Define you own variant type that can hold any kind of tokens you want to handle. Them process variables of this variant type.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
From what I understand, you want a type that can hold several possible types. This is a union in C/C++.
From C++17, you can use en.cppreference.com/w/cpp/utility/...
Define you own variant type that can hold any kind of tokens you want to handle. Them process variables of this variant type.