mir-core ~master (2021-10-18T16:44:50Z)
Dub
Repo
empty
mir
primitives
pragma(
inline
, true)
@
optmath
bool
empty
(
size_t
dim
= 0
T
)
(
scope
const
T
[]
ar
)
if
(
!
dim
)
Examples
assert
((
int
[]).
init
.
empty
);
assert
(![
1
].
empty
!
0
);
// Slice-like API
Meta
Source
See Implementation
mir
primitives
aliases
elementsCount
functions
anyEmpty
anyEmptyShape
back
elementCount
empty
front
length
popBack
popBackExactly
popBackN
popFront
popFrontExactly
popFrontN
save
shape
walkLength
templates
DeepElementType
DimensionCount
ElementType
isInfinite
variables
hasLength
hasShape
isInputRange
isOutputRange