Q8. Sets STL#8
Study the following code carefully.
struct student{
string name;
float cgpa;
student(string name, float cgpa){
this -> name = name;
this -> cgpa = cgpa;
}
};
struct comp{
bool operator () (const student& x, student y) {
return x.name < y.name;
}
};
set < student, comp > batch;
The above code compiles successfully. Choose which of the following declarations of the function operator () will give a compilation error.