given this structure:
struct Libro{
string nombre;
int codigo;
bool disp;
};
and this list list <Libro> libro;
I would like to know how to find a specific book by means of the code, I mean something so the user places the code and shows the name, the code and the availability .. I was told that with std: find_if and I have tried it with vectors of integers or integer lists .. but I can not find how to make it work when it comes to list of structs