A base class for implementing value-like flags and flag sets, where flags and flag sets may be used without allocation overhead.