![]() |
Spicy
|
#include <bitfield.h>
Public Types | |
| using | value_type = Tuple< Ts... > |
Public Member Functions | |
| Bitfield (value_type v=value_type()) | |
| template<typename... Us> | |
| Bitfield (Bitfield< Us... > other) | |
Public Attributes | |
| value_type | value |
A bitfield is just a type wrapper around a tuple of the corresponding field values (including the hidden additional element storing the bitfield's original integer value). We wrap it so that we can customize the printing.
|
inline |
Construct a bitfield from a tuple.
|
inline |
Support instantiation from another bitfield type as long as all types convert over.