vibe.d beta banner
get vibe.d
0.9.3

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

get - multiple declarations

Function get

Gets the value stored in an algebraic type based on its data type.

ref inout(T) get(T, U) (
  ref inout(TaggedAlgebraic!U) ta
);

inout(T) get(T, U) (
  inout(TaggedAlgebraic!U) ta
);

Function get

Gets the value stored in an algebraic type based on its kind.

ref auto get(alias kind, U) (
  ref inout(TaggedAlgebraic!U) ta
)
if (is(typeof(kind) == typeof(ta).Kind));

auto get(alias kind, U) (
  inout(TaggedAlgebraic!U) ta
)
if (is(typeof(kind) == typeof(ta).Kind));
Authors

Sönke Ludwig

Copyright

Copyright 2015-2019, Sönke Ludwig.

License

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