C++ STL學習之容器set和multiset (補充材料)

一、set和multiset基礎 set和multiset會根據特定的排序準則,自動將元素進行排序。不同的是後者允許元素重複而前者不允許。 需要包含頭文件: #include <set> set和multiset都是定義在std空間裏的類模板: 1 template<class _Kty, 2 class _Pr = less<_Kty>, 3 class _Alloc = all
相關文章
相關標籤/搜索