For example i have templated structure
template <class T>
struct Event {
T args;
int32_t coordinate;
};
And for example i want to store
Event<int32_t>
and Event<std::vector<int32_t>>
in one vector. Is there any analog to generics from other languages like:
std::vector<Event<?>>
?
UPD for all, who need to understand what i need to do: i have many events, which have different types of arguments. For example some events may have int32_t
as arg
, some std::vector<int32_t>
, some Event<int32_t>
, etc...