phobos-next v0.3.9 (2020-08-07T21:50:30Z)
Home
Dub
Repo
setBit
nxt
bitop_ex
Sets the
bix
:th bit of
*a
to one.
void
setBit
(T a, I bixs)
void
setBit
(T* a, I bixs)
void
setBit
(T a, I bixs)
@
safe
pure nothrow @
nogc
pragma(
inline
, true) @
trusted
void
setBit
(
T
I
...
)
(
ref
T
a
,
I
bixs
)
if
(
(
!
(
isIntegral
!
T
)
)
&&
allSatisfy
!(
isIntegral
,
I
)
&&
I.length
>= 1
)
Meta
Source
See Implementation
nxt
bitop_ex
functions
getHighestBit
getLowestBit
makeBit
resetBit
resetHighestBit
resetLowestBit
setBit
setHighestBit
setLowestBit
testBit
templates
UnsignedOfSameSizeAs
Sets the bix:th bit of *a to one.