specyfic syntax question
        Posted  
        
            by 
                bua
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by bua
        
        
        
        Published on 2011-01-11T22:28:31Z
        Indexed on 
            2011/01/11
            22:54 UTC
        
        
        Read the original article
        Hit count: 203
        
Hi there,
Is it possible to create template to the initialization like:
template <typename C> typename C::value_type  fooFunction(C& c) {...};
std::vector<string> vec_instance;
fooFunction(cont<0>(vec_instance));
fooFunction(cont<1>(vec_instance));
In general i'm interested is it possible to specify template using integer (ie. 0) instead of true type name. And how to achieve above?
© Stack Overflow or respective owner