Report a bug
If you spot a problem with this page, click here to create a Github issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using a local clone.
totemplate converts a value from one type to another. The source type is deduced and the target type must be specified, for example the expression
to!int(42.0) converts the number 42 from double to int. The conversion is "unsafe", i.e., it does not check for overflow.
- ref T
to(A...)(auto ref A
if (A.length > 0);
Copyright © 2016-, Ilya Yaroshenko | Page generated by Ddoc on Sat Jun 17 09:51:30 2017