1.Pairs(對組) 常用的一個便捷函數
namespace std{
template <typename T1,typename T2>
pair<T1,T2> make_pair(const T1& x,const T2& y)
{
return pair<T1,T2>(x,y);
}
如:
std::pair<int,char>(42,’@’);
std::make_pair(42,’@’);
2.
posted on 2008-09-26 08:43
chatler 閱讀(364)
評論(0) 編輯 收藏 引用 所屬分類:
GP_STL