STL之关联式容器常用方法汇总2018.8.15

@序列容器之set:begin(); end(); clear(); empty(); size(); count(); equal_range(); erase(pos); erase(first, last); erase(x); find(x); insert(x); insert(first, last); lower_bound(x); upper_bound(x); swap(x); 

@序列容器之map:begin(); end(); clear(); empty(); size(); count(); equal_range(); erase(pos); erase(first, last); erase(x); find(x); insert(x); insert(first, last); lower_bound(x); upper_bound(x); swap(x); [x.first];

@序列容器之multiset和multmap:insert时不返回pair<iterator<delctype(value_type)>, bool>, 而是返回iterator;

hashtable待补充

猜你喜欢

转载自blog.csdn.net/KristinaXu/article/details/81747114