You are viewing a single comment's thread. Return to all comments →
template <class T> class AddElements{ private: T element; public: AddElements(const T& t) : element(t) {} T add(const T& t){ return element + t;} T concatenate(const T& t){ return element + t;} };
Seems like cookies are disabled on this browser, please enable them to open this website
C++ Class Templates
You are viewing a single comment's thread. Return to all comments →