I'm using a structure of set
that contains a vector
, which in turn contains an object of a class called Nodo
, when I try to use the function find()
of the vector of the stl
me There is an error, consider that it is a function of Nodo
and that it should be in that class.
I have included all the necessary files and libraries. Code:
if((*lista_cerrada.end()).find((*lista_cerrada.end()).begin(),(*lista_cerrada.end()).end(),ns)==(*lista_cerrada.end()).end())
(*lista_cerrada.end()).push_back(ns);
Error:
error: ‘const class std::vector<Nodo>’ has no member named ‘find’; did you mean ‘cend’?
Thanks