vibe.d beta banner
get vibe.d
0.10.1

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

Struct This

Special type used as a placeholder for U within the definition of U to enable self-referential types.

struct This ;

Note that this is recognized only if used as the first argument to a template type.

Fields

NameTypeDescription
nothing Void

Example

union U {
	TaggedUnion!This[] list;
	int number;
	string text;
}
alias Node = TaggedUnion!U;

auto n = Node([Node(12), Node("foo")]);
assert(n.isList);
assert(n.listValue == [Node(12), Node("foo")]);
Authors

Sönke Ludwig

Copyright

Copyright 2015-2019, Sönke Ludwig.

License

www.boost.org/LICENSE_1_0.txt, Boost License 1.0.