Skip to content

Commit

Permalink
Fill in some missing functions in map_set
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielKrawisz committed Nov 4, 2022
1 parent b09b766 commit c19c355
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions include/data/tools/map_set.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,8 @@ namespace data::tool {
template <typename ... P>
map_set(K k, P... p);

bool operator==(const map_set& m) const;

bool operator!=(const map_set& m) const {
return !operator==(m);
bool operator==(const map_set& m) const {
return values() == m.values();
}

map_set operator&(const map_set& m) const {
Expand Down Expand Up @@ -146,6 +144,10 @@ namespace data::tool {

return x;
}

bool valid() const {
return values().valid();
}
};

template <typename M, typename K, typename V>
Expand Down

0 comments on commit c19c355

Please sign in to comment.