unsigned
fn
auto unsigned(T)(T x) if (isIntegral!T)Returns the corresponding _unsigned value for x (e.g. if x has type int, it returns cast(uint) x). The advantage compared to the cast is that you do not need to rewrite the cast if x later changes type (e.g from int to long).
Note that the result is always mutable even if the original type was const or immutable. In order to retain the constness, use Unsigned.
fn
auto unsigned(T)(T x) if (isSomeChar!T)Ditto