list<>.size()

Michael Vance briareos@lokigames.com
Fri Mar 31 19:46:00 GMT 2000


On Fri, Mar 31, 2000 at 09:36:58PM -0600, Raja R Harinath wrote:

> Note that not the whole of 'x' need be spliced in.  How can you figure
> out size([first,last)) in O(1)?

You can't. The MSVC implementation calls distance() on the incoming
list.

Ah well. I have sent a note to the original developers noting that
they are relying upon broken functionality...

m.

-- 
Programmer             "Ha ha." "Ha ha." "What are you laughing at?"
Loki Software                      "Just the horror of being alive."
http://lokigames.com/~briareos/                   - Tony Millionaire


More information about the Gcc mailing list