Alias std.traits.ImplicitConversionTargets
alias ImplicitConversionTargets(T)
= AliasSeq!(byte,ubyte,short,ushort,int,uint,long,ulong,CentTypeList,float,double,real,char,wchar,dchar);
Parameters
| Name | Description |
|---|---|
| T | The type to check |
Warning
This template is considered out-dated. It will be removed from
Phobos in 2.107.0. Please use AllImplicitConversionTargets instead.
Returns
An AliasSeq with all possible target types of an implicit
conversion T.
If T is a class derived from Object, the result of
TransitiveBaseTypeTuple is returned.
If the type is not a built-in value type or a class derived from
Object, an empty AliasSeq is returned.
Note
The possible targets are computed more conservatively than the
language allows, eliminating all dangerous conversions. For example,
ImplicitConversionTargets!double does not include float.
See Also
Authors
Walter Bright,
Tomasz Stachowiak (isExpressions),
Andrei Alexandrescu,
Shin Fujishiro,
Robert Clipsham,
David Nadlinger,
Kenji Hara,
Shoichi Kato