Core/Flags: Add Test method

This commit is contained in:
Jérôme Leclercq
2017-11-22 12:58:56 +01:00
parent 54faabcc33
commit aa623a4933
3 changed files with 14 additions and 1 deletions

View File

@@ -48,6 +48,8 @@ namespace Nz
constexpr Flags(BitField value = 0);
constexpr Flags(E enumVal);
constexpr bool Test(const Flags& flags) const;
explicit constexpr operator bool() const;
template<typename T, typename = std::enable_if_t<std::is_integral<T>::value && sizeof(T) >= sizeof(BitField)>> explicit constexpr operator T() const;