quantities ~master (2020-01-27T14:07:29Z)
Home
Dub
Repo
isQuantity
quantities
compiletime
Tests whether T is a quantity type.
template
isQuantity (
T
) {
import
std
.
traits
:
Unqual
;
;
alias
U
=
Unqual
!
T
;
static if
(
is(U == Quantity!X, X...)
)
enum
isQuantity
;
static if
(!(
is(U == Quantity!X, X...)
))
enum
isQuantity
;
}
Members
Aliases
U
alias
U
=
Unqual
!
T
Undocumented in source.
Manifest constants
isQuantity
enum
isQuantity
;
Undocumented in source.
isQuantity
enum
isQuantity
;
Undocumented in source.
Meta
Source
See Implementation
quantities
compiletime
functions
abs
cbrt
cubic
nthRoot
pow
sqrt
square
unit
structs
Quantity
templates
isQuantity
Tests whether T is a quantity type.