SmartInt

Undocumented in source.
  1. template SmartInt(N, bool bitOps = true, bool throws = true)
  2. struct SmartInt(N, bool bitOps = true, bool throws = true)
    @safe
    struct SmartInt (
    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
SmartInt!(Unsigned!N, bitOps, throws) abs()
Undocumented in source. Be warned that the author may not have intended to support it.
bsf
SmartInt!(ubyte, bitOps, throws) bsf()
Undocumented in source. Be warned that the author may not have intended to support it.
bsr
SmartInt!(ubyte, bitOps, throws) bsr()
Undocumented in source. Be warned that the author may not have intended to support it.
divPow2
auto divPow2(M exp)
Undocumented in source. Be warned that the author may not have intended to support it.
divPow2
auto divPow2(M exp)
Undocumented in source. Be warned that the author may not have intended to support it.
ilogb
SmartInt!(ubyte, bitOps, throws) ilogb()
Undocumented in source. Be warned that the author may not have intended to support it.
mulPow2
auto mulPow2(M exp)
Undocumented in source. Be warned that the author may not have intended to support it.
mulPow2
auto mulPow2(M exp)
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
auto opBinary(M right)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
auto opBinary(M right)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinaryRight
auto opBinaryRight(M left)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinaryRight
auto 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
SmartInt!(Signed!N, bitOps, throws) 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
SmartInt!(int, bitOps, throws) popcnt()
Undocumented in source. Be warned that the author may not have intended to support it.
pow
auto pow(M exp)
Undocumented in source. Be warned that the author may not have intended to support it.
pow
auto 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
SmartInt!(N, true, throws) bits;
Undocumented in source.
bscal
N bscal;
Undocumented in source.

Meta