Original Post
Hi, I´d like to have my function flexible enough to receive an ordinary array, a STD vetor or a STD list abstract data type. So I created three overloaded template functions to handle them as this: I was thinking that should be a way to do this in just one function. Can anyone give me a tip. Thanks in advance. [Edited by - felipedrl on March 15, 2007 7:57:17 PM]
extern template < class T >
T* getSelected( T **, ... );
extern template < class T >
T* getSelected( std::vector< T *>, ... );
extern template < class T >
T* getSelected( std::list< T * >, ... );