由於set和map都是有序容器,是否可以在std::map的0(1)時間中找到std::set的最小值和最大值? // for std::set // std::set<int> s; auto min = *s.begin(); auto max ...
確定! 回上一頁