|
Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
|
This encapsulates the concept of a single bit. More...
#include <ubb.h>
Public Member Functions | |
| reference (bitset &b, size_t pos) noexcept | |
| ~reference () noexcept | |
| reference & | operator= (bool x) noexcept |
| reference & | operator= (const reference &j) noexcept |
| bool | operator~ () const noexcept |
| operator bool () const noexcept | |
| reference & | flip () noexcept |
Friends | |
| class | bitset |
This encapsulates the concept of a single bit.
An instance of this class is a proxy for an actual bit; this way the individual bit operations are done as faster word-size bitwise instructions.
Most users will never need to use this class directly; conversions to and from bool are automatic and should be transparent. Overloaded operators help to preserve the illusion.
(On a typical system, this bit reference is 64 times the size of an actual bit. Ha.)
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
friend |