cpp-mate
0.7
Helpful library for C++.
|
Functions | |
template<typename T > | |
constexpr bool | hasBitFlag (T value, T flag) noexcept |
Indicates that the specified bit is set. More... | |
template<typename T > | |
constexpr void | setBitFlag (T &value, T flag) noexcept |
Sets bit. More... | |
template<typename T > | |
constexpr void | resetBitFlag (T &value, T flag) noexcept |
Resets bit. More... | |
template<typename T > | |
constexpr T | getBitFlag (T bitNumber) noexcept |
Gets value by bit number. More... | |
template<typename T > | |
constexpr bool | hasFlag (T value, T flag) noexcept |
Indicates that the specified bit is set. More... | |
template<typename T > | |
constexpr void | setFlag (T &value, T flag) noexcept |
Sets bit. More... | |
template<typename T > | |
constexpr void | resetFlag (T &value, T flag) noexcept |
Resets bit. More... | |
|
inlineconstexprnoexcept |
Gets value by bit number.
bitNumber | the number of the bit starts from one (to use enum values generated directly by the compiler). |
|
inlineconstexprnoexcept |
Indicates that the specified bit is set.
value | the value to check. |
flag | the bit to check. |
true
if flag is set in value; false
otherwise.
|
inlineconstexprnoexcept |
Indicates that the specified bit is set.
value | the value to check. |
flag | the number of bit to check. |
true
if flag is set in value; false
otherwise.
|
inlineconstexprnoexcept |
Resets bit.
value | the value to reset bit. |
flag | the bit to reset. |
|
inlineconstexprnoexcept |
Resets bit.
value | the value to reset bit. |
flag | the number of bit to reset. |
|
inlineconstexprnoexcept |
Sets bit.
value | the value to set bit. |
flag | the bit to set. |
|
inlineconstexprnoexcept |
Sets bit.
value | the value to set bit. |
flag | the number of bit to set. |