
19 Feb
2009
19 Feb
'09
12:49 p.m.
Say I have: template<typename in_t> void F (in_t & in) ... main() { F<std::vector<int> > (...) Suppose in_t is a templated container, such as std::vector<int>. Is there a way within the function 'F' to get the generic container type, 'std::vector' when F is instantiated with a specific e.g., std::vector<int>? Maybe I'm missing something obvious :)