summaryrefslogtreecommitdiff
path: root/include/erebos/set.h
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2022-12-18 21:35:51 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2022-12-18 21:37:49 +0100
commitfe58e4472858a9221b0e77e075588214fecf428c (patch)
treee1fd56427699d4f14b0e3fb72f2167a3b86ddae9 /include/erebos/set.h
parent27911e4c08bd97570e528b2f35fe8fb73503c35b (diff)
Add SetView::size method for stored set
Diffstat (limited to 'include/erebos/set.h')
-rw-r--r--include/erebos/set.h1
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(); }