SafeInt

Undocumented in source.
  1. template SafeInt(N, bool bitOps = true, bool throws = true)
  2. struct SafeInt(N, bool bitOps = true, bool throws = true)
    @safe
    struct SafeInt (
    N
    bool bitOps = true
    bool throws = true
    ) if (
    isIntegral!N &&
    isUnqual!N
    ) {}

Constructors

this
this(N bscal)
Undocumented in source.
this
this(M that)
Undocumented in source.

Members

Functions

abs
typeof(this) abs()
Undocumented in source. Be warned that the author may not have intended to support it.
bsf
SafeInt!(int, bitOps, throws) bsf()
Undocumented in source. Be warned that the author may not have intended to support it.
bsr
SafeInt!(int, bitOps, throws) bsr()
Undocumented in source. Be warned that the author may not have intended to support it.
ilogb
SafeInt!(int, bitOps, throws) ilogb()
Undocumented in source. Be warned that the author may not have intended to support it.
opAssign
typeof(this) opAssign(N bscal)
Undocumented in source. Be warned that the author may not have intended to support it.
opAssign
typeof(this) opAssign(M that)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
M opBinary(M right)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
SafeInt!(OpType!(N, op, BasicScalar!M), bitOps && hasBitOps!M, throws || isThrowingCInt!M) opBinary(M right)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinaryRight
M opBinaryRight(M left)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinaryRight
SafeInt!(OpType!(M, op, N), bitOps, throws) opBinaryRight(M left)
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
M opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
M opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
M opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCmp
auto opCmp(M right)
Undocumented in source. Be warned that the author may not have intended to support it.
opCmp
int opCmp(M right)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(M right)
Undocumented in source. Be warned that the author may not have intended to support it.
opOpAssign
typeof(this) opOpAssign(M right)
Undocumented in source. Be warned that the author may not have intended to support it.
opUnary
typeof(this) opUnary()
Undocumented in source. Be warned that the author may not have intended to support it.
opUnary
typeof(this) opUnary()
Undocumented in source. Be warned that the author may not have intended to support it.
popcnt
SafeInt!(int, bitOps, throws) popcnt()
Undocumented in source. Be warned that the author may not have intended to support it.
pow
M pow(M exp)
Undocumented in source. Be warned that the author may not have intended to support it.
pow
SafeInt!(CallType!(std.math.pow, N, BasicScalar!M), bitOps && hasBitOps!M, throws || isThrowingCInt!M) pow(M exp)
Undocumented in source. Be warned that the author may not have intended to support it.
toHash
size_t toHash()
Undocumented in source. Be warned that the author may not have intended to support it.
toString
void toString(Writer sink, FormatSpec!Char fmt)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

max
enum max;
Undocumented in source.
min
enum min;
Undocumented in source.

Properties

bits
typeof(this) bits [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
bits
const(typeof(this)) bits [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
bscal
N bscal [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
bscal
const(N) bscal [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
idx
Select!(isSigned!N, ptrdiff_t, size_t) idx [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
max
auto max [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
min
auto min [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

bits
SafeInt!(N, true, throws) bits;
Undocumented in source.
bscal
N bscal;
Undocumented in source.

Meta