What about putting array.empty in object.d?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Wed Mar 21 19:12:36 PDT 2012


On 3/21/12 7:53 PM, Jonathan M Davis wrote:
> Actually, it looks like std.container _does_ guarantee that length is O(1),
> unlike C++'s STL, in which case it's not the same issue that it is in C++.

Here we learned from a small mistake of C++. (BTW it's O(log n).)

Andrei



More information about the Digitalmars-d mailing list