HasFlag()

Enum::HasFlag(E, E) method

Determines if the specified bits are set in a bitary representation of the specified enum value.

static bool System::Enum<E, Guard>::HasFlag(E value, E mask)

Arguments

ParameterTypeDescription
valueEThe enum value to test
maskEThe mask to check value’s bits against

Return Value

True if bits that are set in mask are also set in value, otherwise - false

See Also