template<class T>
class coulomn {
public:
coulomn();
~coulomn();
int addcoulomn();
int addvalue( int x, int y, T t);
T printvalue( int x, int y);
int resize( int x, int y);
private:
vector<vector<T>> matrix;
int _sizeX, _sizeY;
};
#include "coulomn.h"
template<class T>
coulomn<T>::coulomn() {
_sizeX=0;
_sizeY=0;
}
template<class T>
coulomn<T>::~coulomn() {
}
template<class T>
int coulomn<T>::addcoulomn(){
matrix.emplace_back(NULL);
return 0;
}
i was trying to make a matrix with vector vector with an userdefined type , but my template class doesnt work. if i test it with for example int it works, but i can t implement the template