I'm doing a project in C ++ and I have a class called DataContext where I will have vectors that store objects of another class as member data. I want to perform a function that resieves a vector of any type of class to be able to add, search, delete or modify the objects belonging to said vector.
class DataContext
{
private:
vector<TarjetaCredito> listaTarjetas = vector<TarjetaCredito>();
vector<Contrato> lvector<Contrato> listaContrato = vector<Contrato>();
public:
DataContext();
virtual ~DataContext();
static bool Create(vector<vector_de _cualquier_clase>);//METODO QUE QUIERO IMPLIMENTAR.
};
I thought that when passing the vector as an argument, where does the data type of the vector have to put a template, if that is correct, where would it be?
I hope you can help me, thank you very much.