fixed-containers
fixed-containers copied to clipboard
FixedBitSet to provide constexpr storage for EnumSet
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.