关于SGI Standard Template Library的FAQ

   1   if (L.size() == 0)
   2     ...

Instead, you should write

   1   if (L.empty())
   2     ...

  std::stack<T> s;
  ...
  T old_value = s.top();  
  s.pop();

sort(first, last, greater<T>());

STL编程指南/FAQ (last edited 2008-02-23 15:36:27 by localhost)

ch3n2k.com | Copyright (c) 2004-2022 czk.