diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2022-12-18 21:35:51 +0100 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2022-12-18 21:37:49 +0100 |
commit | fe58e4472858a9221b0e77e075588214fecf428c (patch) | |
tree | e1fd56427699d4f14b0e3fb72f2167a3b86ddae9 /include | |
parent | 27911e4c08bd97570e528b2f35fe8fb73503c35b (diff) |
Add SetView::size method for stored set
Diffstat (limited to 'include')
-rw-r--r-- | include/erebos/set.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/erebos/set.h b/include/erebos/set.h index 539ffa0..e4a5c91 100644 --- a/include/erebos/set.h +++ b/include/erebos/set.h @@ -60,6 +60,7 @@ public: template<class F> SetView(F && cmp, const vector<vector<Ref>> & refs); + size_t size() const { return items.size(); } typename vector<T>::const_iterator begin() const { return items.begin(); } typename vector<T>::const_iterator end() const { return items.end(); } |