是否可以根据这些对象的任何属性轻松地对对象类型指针的向量进行排序?
比方说students是对象类型指针的载体,当对象student是类型Student,有两个方法student.studentAlias()和student.studentName().如何根据别名对向量进行排序?
students
student
Student
student.studentAlias()
student.studentName()
提前致谢.
c++ sorting attributes vector
attributes ×1
c++ ×1
sorting ×1
vector ×1