Boost logo

Boost Users :

Subject: [Boost-users] OT: generic template type from specific type?
From: Neal Becker (ndbecker2_at_[hidden])
Date: 2009-02-19 07:49:46


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 :)


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net