Effective STL: Item 21:永远让比较函数对相同元素返回false[5]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 taodm 的 blog

                           const string*,            // associative containers

                           bool> {

bool operator()(const string *ps1, const string *ps2) const

{

return *ps2 < *ps1;                          // return whether *ps2

}                                                // precedes *ps1 (i.e., swap

                                                     // the order of the

本文关键:Effective STL,Scott Meyers
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top