xtd 0.2.0
Loading...
Searching...
No Matches

◆ has_flag()

template<typename enum_t = std::nullptr_t>
bool xtd::enum_object< enum_t >::has_flag ( enum_type  flag) const
inlinenoexcept

Retrieves an array of the values of the constants in a specified enumeration.

Parameters
flagAn enumeration value.
Returns
true if the bit field or bit fields that are set in flag are also set in the current instance; otherwise, false.
Remarks
The has_flag method returns the result of the following bool expression : this_instance And flag = flag