scid ~John-Colvin-patch-1 (2022-05-06T09:24:25.9708105)
Dub
Repo
One
scid
core
meta
Evaluates to the unit value for a given type.
assert
(
One
!
creal
=
1.0
+
0.0i
);
template
One (
T
) {
static if
(
isFloatingPoint!T
)
enum
T
One
;
static if
(!(
isFloatingPoint!T
))
static if
(
is(T : Complex!E, E)
)
enum
T
One
;
static if
(!(
isFloatingPoint!T
))
static if
(!(
is(T : Complex!E, E)
))
static if
(
isComplex!T
)
enum
T
One
;
static if
(!(
isFloatingPoint!T
))
static if
(!(
is(T : Complex!E, E)
))
static if
(!(
isComplex!T
))
static if
(
isIntegral!T
)
enum
T
One
;
}
Members
Variables
One
enum
T
One
;
Undocumented in source.
One
enum
T
One
;
Undocumented in source.
One
enum
T
One
;
Undocumented in source.
One
enum
T
One
;
Undocumented in source.
Meta
Source
See Implementation
scid
core
meta
templates
One
Zero
Evaluates to the unit value for a given type.