You are viewing a single comment's thread. Return to all comments →
template <class T> class AddElements { private: T element; public: AddElements(const T& element) : element(element) {} T add(const T& other) { return element + other; } T concatenate(const T& other) { return element + other; } };
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 →