phobos-next ~master (2024-03-19T05:49:32Z)
Home
Dub
Repo
isAllOneBits
nxt
bit_traits
Undocumented in source.
template
isAllOneBits (
T
T
value
) {
import
std
.
traits
:
isIntegral
,
isSomeChar
,
Unsigned
;
;
import
std
.
traits
:
isIntegral
,
isSomeChar
,
Unsigned
;
;
import
std
.
traits
:
isIntegral
,
isSomeChar
,
Unsigned
;
;
import
core
.
bitop
:
popcnt
;
;
static if
(
isIntegral!T || isSomeChar!T
)
static if
(
T.min < T(0)
)
enum
isAllOneBits
;
static if
(
isIntegral!T || isSomeChar!T
)
static if
(!(
T.min < T(0)
))
enum
isAllOneBits
;
static if
(!(
isIntegral!T || isSomeChar!T
))
static if
(
__traits(isStaticArray, typeof(value))
)
enum
isAllOneBits
;
static if
(!(
isIntegral!T || isSomeChar!T
))
static if
(!(
__traits(isStaticArray, typeof(value))
))
static if
(
is(typeof(value) == struct)
)
enum
isAllOneBits
;
static if
(!(
isIntegral!T || isSomeChar!T
))
static if
(!(
__traits(isStaticArray, typeof(value))
))
static if
(!(
is(typeof(value) == struct)
))
enum
isAllOneBits
;
}
Members
Manifest constants
isAllOneBits
enum
isAllOneBits
;
Undocumented in source.
isAllOneBits
enum
isAllOneBits
;
Undocumented in source.
isAllOneBits
enum
isAllOneBits
;
Undocumented in source.
isAllOneBits
enum
isAllOneBits
;
Undocumented in source.
isAllOneBits
enum
isAllOneBits
;
Undocumented in source.
Meta
Source
See Implementation
nxt
bit_traits
templates
bitsNeeded
isAllOneBits
isAllZeroBits
isInitAllOneBits
isInitAllZeroBits
packedBitSizeOf