Using teemplates in C++.