PDA

View Full Version : speclization in c++ 2011



saneha
05-02-2011, 06:31 PM
speclization in c++ 2011

Vuhelper
05-02-2011, 06:32 PM
Vector <int *> iPtrVector; use partial specialization because when we use the Vector<int *> iPtrVector the Vector<T*> will be instantiated. As we specify the behaviour of Vector<T*> for a group of pointers. Those pointers may be integer, float, character etc. If we use Vector<float *> iPtrVector; it also use the partial specialization. And if there is a complete specialization exist i.e. Vector<int *> then Vector<int *> iPtrVector use the complete specialization.