Added support for release type in metadata parser

This commit is contained in:
emeric
2023-04-04 23:22:27 +02:00
parent 05e746ab3b
commit 4ba7aff628
7 changed files with 207 additions and 3 deletions
+12
View File
@@ -44,6 +44,13 @@ class EnumSet
template <typename It>
constexpr EnumSet(It begin, It end)
{
assign(begin, end);
}
template <typename It>
constexpr void assign(It begin, It end)
{
clear();
for (It it {begin}; it != end; ++it)
insert(*it);
}
@@ -71,6 +78,11 @@ class EnumSet
return _bitfield & (underlying_type{ 1 } << static_cast<underlying_type>(value));
}
constexpr void clear()
{
_bitfield = 0;
}
class iterator
{
public: