$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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 :)