I\'m trying to make a vector in C++ that can store 3 different data types. I do not want to use the boost library. Something like:
vector
you could use std::any, store your objects in the vector as any and when you pull them out use type() == typeid(mytype)
https://en.cppreference.com/w/cpp/utility/any
This is only for C++17 onwards though.