Could we reserve void[T] for builtin set of T ?
tsbockman via Digitalmars-d
digitalmars-d at puremagic.com
Thu Mar 31 13:13:19 PDT 2016
On Thursday, 31 March 2016 at 19:58:54 UTC, H. S. Teoh wrote:
> How is this different from bool[T] then? Just the fact that you
> can't get a reference to the bool?
void[T] could be more efficient, since it wouldn't need to
allocate memory for a bool payload. I expect that alignment
concerns typically require more than one byte per bool in a
bool[T]. (I haven't studied the current implementation, though.)
More information about the Digitalmars-d
mailing list