feat(StudentCourse): Add != operator for use in testing

This commit is contained in:
2025-10-02 13:08:46 +02:00
parent 6cfc8b3941
commit 057968d5ac

View File

@@ -24,6 +24,10 @@ struct StudentCourse {
|| (student_name == other.student_name
&& course_name < other.course_name);
}
bool operator!=(const StudentCourse& other) const {
return !(*this == other);
}
};
typedef std::map<StudentCourse, std::vector<int>> StudentCourseResultMap;