Hi,
I have a very basic question. What is the appropriate data type for what essentially is a collection of bools, taking the value true if a certain property exists? For example, assume there are 9 properties in total,
Code:
{Red, Yellow, Green, Thick, Thin, Young, Old, Bad, Good}
any of which can be possessed by a class instance,
Code:
MyClass Example({Red, Green, Young})
Functions (own and general) are then modified depending on whether a certain property is set.
I was thinking of using an enum, but verifying whether a property exists in an enum not straight forward. In principle, vector of bools would do. Even bits of an integer. But then I don't see the labels, just the indices, which impairs readability.