Answer the question
In order to leave comments, you need to log in
How to pass an instance of a class template to a function?
I have a class template:
template<typename T>class Multiplicity
{
private:
vector<T> Field;
public:
Multiplicity();
~Multiplicity();
void show() const;
int getLength() const;
void insert(T Elem);
void deleteElem(T elem);
void sortArray();
bool empty() const;
bool have(T elem) const;
};
Multiplicity<int> ArrayInt;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question