[c++0x] unique_ptr.hpp implementation

Doug Gregor doug.gregor@gmail.com
Sat Aug 18 13:19:00 GMT 2007


On 8/18/07, Paolo Carlini <pcarlini@suse.de> wrote:
> 2- If I remember correctly, tuple can certainly take advantage of
> decltype, which luckily Doug already implemented. While you are updating
> tuple, I would suggest looking into that too, if possible...

Yes. One can use decltype to implement tuple_element in O(1)
instantiations , rather than the current O(N) implementation. O(1) is
much, much better for compile-time performance.

  - Doug



More information about the Libstdc++ mailing list