phobos-next ~master (2022-05-18T09:58:38.2169964)
Dub
Repo
UsageOf
nxt
memuse
Get Asymptotic Memory Usage of
x
in Bytes.
template
UsageOf (
T
) {
import
std
.
range
:
ElementType
;
;
import
std
.
traits
:
isDynamicArray
,
hasIndirections
,
isScalarType
;
;
import
std
.
traits
:
isDynamicArray
,
hasIndirections
,
isScalarType
;
;
import
std
.
traits
:
isDynamicArray
,
hasIndirections
,
isScalarType
;
;
import
std
.
typecons
:
Nullable
;
;
static if
(
!hasIndirections!T
)
enum
UsageOf
;
alias
UsageOf
=
Linear1D
!(
size_t
,
ElementType
!
T
.
sizeof
)
;
alias
UsageOf
=
Quadratic1D
!(
size_t
,
ElementType
!
T
.
sizeof
)
;
}
Members
Aliases
UsageOf
alias
UsageOf
=
Quadratic1D
!(
size_t
,
ElementType
!
T
.
sizeof
)
Undocumented in source.
UsageOf
alias
UsageOf
=
Linear1D
!(
size_t
,
ElementType
!
T
.
sizeof
)
Undocumented in source.
Manifest constants
UsageOf
enum
UsageOf
;
Undocumented in source.
Meta
Source
See Implementation
nxt
memuse
structs
Linear1D
Quadratic1D
templates
UsageOf
Get Asymptotic Memory Usage of x in Bytes.