fixed-containers icon indicating copy to clipboard operation
fixed-containers copied to clipboard

FixedBitSet to provide constexpr storage for EnumSet

Open rgb2hsv opened this issue 3 months ago • 1 comments

EnumSet currently uses std::array as the backing type because std::bitset is not sufficiently constexpr. This PR introduces FixedBitSet as a possible solution. The overall advantage is that EnumSet can then be extended to incorporate addition += deletion -= and contains(EnumSet<>) operations for subsets.

rgb2hsv avatar Nov 25 '24 15:11 rgb2hsv