#define debug qDebug()<<
int main(int argc, char *argv[])
{
QList<int> list = {8, 9, 1, 2, 3, 4, 5, 6};
bool result;
result = std::is_sorted(list.begin(), list.end());
debug result;
}
is_sorted()还有第三个参数作为排序规则的版本,不缀诉。排序算法sort()
#define debug qDebug()<<
int main(int argc, char *argv[])
{
QList<int> list = {8, 9, 1, 2, 3, 4, 5, 6};
bool result;
result = std::is_sorted(list.begin(), list.end());
debug result;
}
is_sorted()还有第三个参数作为排序规则的版本,不缀诉。排序算法sort()