phobos-next ~master (2024-03-19T05:49:32Z)
Home
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.