If I have a function with a template type, how can I query that at runtime? For example, if I want to know if it's a primitive (int, long, bool, etc) I'll do one thing, otherwise something else.
template <typename T>
void getData(const std::vector<T> &data)
//I essentially want to do something like this
if ( type_id( T ) == type_id( int ) ...