The OpenD Programming Language

taggedalgebraic.taggedunion

* Generic tagged union and algebraic data type implementations. * * Copyright: Copyright 2015-2019, Sönke Ludwig. * License: Boost License 1.0. * Authors: Sönke Ludwig

Members

Structs

This
struct This

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

Void
struct Void

Convenience type that can be used for union fields that have no value (void is not allowed).

Templates

TaggedUnion
template TaggedUnion(U)

Implements a generic tagged union type.

TypeOf
template TypeOf(alias kind)

Maps a kind enumeration value to the corresponding field type.

Meta