phobos-next ~master (2024-03-19T05:49:32Z)
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)
pure nothrow @
safe
@
nogc
@
safe
void
setBit
(
T
I
...
)
(
T
*
a
,
I
bixs
)
if
(
isIntegral
!
T
&&
!
is
(
T
==
size_t
)
&&
allSatisfy
!(
isIntegral
,
I
)
&&
I.length
>= 1
)
void
setBit
(T a, I bixs)
Meta
Source
See Implementation
nxt
bitop_ex
aliases
bt
btm
btr
bts
getBottomBit
getLsbit
getMsbit
getTopBit
resetBottomBit
resetTopBit
setBottomBit
setLsbit
setMsbit
setTopBit
functions
getHighestBit
getLowestBit
makeBit
resetBit
resetHighestBit
resetLowestBit
setBit
setHighestBit
setLowestBit
testBit
templates
UnsignedOfSameSizeAs
Sets the bix:th bit of *a to one.