i have a file called "dtypes.h", that contains some definitions for some numerical data types.
namespace dtypes {
typedef signed short int int16;
// ... some other dtypes
}
i also have another file where i want to create a vector that can contain all this data types (and other vectors). I figured out something like this:
#include <vector>
#include "dtypes.h"
std::vector<std::variant<\* ??? *\>> content;
I really don't know what to place instead of "???", without having to list all the different data types (without doing std::vector<std::variant<dtypes::int16, dtypes::int32 \*...*\>> content;
)
I found some examples here, but it is not exactly what i want.