math: Add min/max

This commit is contained in:
2017-11-02 06:00:11 +01:00
parent e06cc5a071
commit 13407fcf8a
2 changed files with 173 additions and 16 deletions

View File

@@ -209,10 +209,10 @@ void move(T)(ref T source, ref T target)
}
/// ditto
T move(T)(ref T source)
T move(T)(ref T source) @trusted
{
T target = void;
(() @trusted => moveEmplace(source, target))();
moveEmplace(source, target);
return target;
}