关于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 (2008-02-23 15:36:27由localhost编辑)

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