template<unsigned int unique_index, typename word_t = unsigned long>
class Loki::SafeBitConst< unique_index, word_t >
This class defines a bit-field constant - a collection of unchanging bits used to compare to bit-fields. Instances of this class are intended to act as labels for bit-fields.
- Safety
- This class provides operations used for comparisons and conversions, but no operations which may modify the value.
- As a templated class, it provides type-safety so bit values and constants used for different reasons may not be unknowingly compared to each other.
- The unique_index template parameter insures the unique type of each bit bit-field. It shares the unique_index with a similar SafeBitField.
- Its operations only allow comparisons to other bit-constants and bit-fields of the same type.
This class defines a bit-field constant - a collection of unchanging bits used to compare to bit-fields. Instances of this class are intended to store bit values.
- Safety
- This class provides operations used for comparisons and conversions, and also operations which may safely modify the value.
- As a templated class, it provides type-safety so bit values and constants used for different reasons may not be unknowingly compared to each other.
- The unique_index template parameter insures the unique type of each bit bit-field. It shares the unique_index with a similar SafeBitConst.
- Its operations only allow comparisons to other bit-constants and bit-fields of the same type.