Top 5

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sat Oct 11 07:32:25 PDT 2008


Denis Koroskin wrote:
> On Sat, 11 Oct 2008 18:00:38 +0400, Andrei Alexandrescu 
> Two notes:
> 1) I thought Appender would have an 'append' method as well as opCatAssign.

Appender has write because it is an output range. That way you can 
direct any algorithm that uses output iterators to append to an array.

> 2) Shouldn't the following member be called 'size'/'length' instead?
> size_t capacity() const { return pArray ? pArray.length : 0; }
> 'capacity' would look like size_t capacity() const { return _capacity; }

Yah, I deleted that post and reposted without the culprit.


Andrei



More information about the Digitalmars-d mailing list