checkedint ~master (2017-04-21T23:53:16Z)
Dub
Repo
SafeInt.opCmp
checkedint
SafeInt
Perform a floating-point comparison to
right
.
auto
opCmp
(
const
M
right
)
struct
SafeInt
(N, IntFlagPolicy _policy, Flag!"bitOps" bitOps = Yes.bitOps)
auto
opCmp
const pure @
safe
nothrow @
nogc
(
M
)
(
const
M
right
)
if
(
isFloatingPoint
!
M
)
if
(
isIntegral
!
N
&&
isUnqual
!
N
)
int
opCmp
(
const
M
right
)
Return Value
Type:
auto
-1
if this value is less than
right
.
0
if this value is 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
SafeInt
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 floating-point comparison to right.