C++0x vector::shrink_to_fit

vector に shrink_to_fit というメンバ関数が追加されます

namespace std {
  template <class T, class Allocator = allocator<T> >
  class vector {
    void shrink_to_fit();
  };
}

shrink_to_fit は、 capacity() を size() にする要求だそうです


C++0x言語拡張まとめ