Transient ranges
Steven Schveighoffer via Digitalmars-d
digitalmars-d at puremagic.com
Sun May 29 10:45:00 PDT 2016
On 5/27/16 7:42 PM, Seb wrote:
> So what about the convention to explicitely declare a `.transient` enum
> member on a range, if the front element value can change?
enum isTransient(R) = is(typeof(() {
static assert(isInputRange!R);
static assert(hasIndirections(ElementType!R));
static assert(!allIndrectionsImmutable!(ElementType!R)); // need to
write this
}));
-Steve
More information about the Digitalmars-d
mailing list