Quantcast
Channel: How to know the template type in the template constructor - Stack Overflow
Viewing all articles
Browse latest Browse all 2

How to know the template type in the template constructor

$
0
0

here is an exemple :

template< typename T >class A {public :    A(void) {      this->_tab = ???[x];      }private:T*     _tab;};

I would like to initialize my array with x elements but how to get the type of my template (i tried but it's not working ).


Viewing all articles
Browse latest Browse all 2

Trending Articles