Flags Enum Switch Case at scottegifto blog

Flags Enum Switch Case. use the flags attribute on your enum type. a flags is an attribute that allows us to represent an enum as a collection of values rather than a single.

Using enum in my switch case. r/Cplusplus
from www.reddit.com

use the flags attribute on your enum type. See how to use switch and bitwise operators together. enum flags allow you to put multiple values in an enum variable/parameter.

Using enum in my switch case. r/Cplusplus

Flags Enum Switch Caseuse the flags attribute on an enum. flags allow an enum value to contain many values. This is a nice alternative to the problem of having to pass. use the flags attribute on your enum type.