checkedint v0.4.4 (2016-06-05T09:26:21Z)
Dub
Repo
SmartInt.opCmp
checkedint
SmartInt
Perform a mathematically correct comparison to
right
.
auto
opCmp
(M right)
struct
SmartInt
(N, IntFlagPolicy _policy, Flag!"bitOps" bitOps = Yes.bitOps)
const pure nothrow @
nogc
auto
opCmp
(
M
)
(
const
M
right
)
if
(
isFloatingPoint
!
M
)
if
(
isIntegral
!
N
&&
isUnqual
!
N
)
int
opCmp
(M right)
Return Value
Type:
auto
-1
if this value is less than
right
.
0
if this value is precisely equal to
right
.
1
if this value is greater than
right
.
float.nan
if
right
is a floating-point
nan
value.
Meta
Source
See Implementation
checkedint
SmartInt
constructors
this
functions
abs
bsf
bsr
divPow2
ilogb
modPow2
mulPow2
opAssign
opBinary
opBinaryRight
opCast
opCmp
opEquals
opOpAssign
opUnary
popcnt
pow
toHash
toString
properties
bits
idx
variables
bscal
max
min
policy
Perform a mathematically correct comparison to right.