vibe.d beta banner
get vibe.d

Asynchronous I/O that doesn’t get in your way, written in D

TaggedUnion.set - multiple declarations

Function TaggedUnion.set

Sets a void value of the specified kind.

void set(TaggedUnion.Kind kind)()
if (isUnitType!(FieldTypes[kind]));

Function TaggedUnion.set

Sets a new value of the specified kind.

ref TaggedUnion.FieldTypes[kind] set(TaggedUnion.Kind kind) (
  TaggedUnion.FieldTypes[kind] value
if (!isUnitType!(FieldTypes[kind]));

Sönke Ludwig


Copyright 2015-2019, Sönke Ludwig.

License, Boost License 1.0.