From fe58e4472858a9221b0e77e075588214fecf428c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Sun, 18 Dec 2022 21:35:51 +0100 Subject: Add SetView::size method for stored set --- include/erebos/set.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') 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 SetView(F && cmp, const vector> & refs); + size_t size() const { return items.size(); } typename vector::const_iterator begin() const { return items.begin(); } typename vector::const_iterator end() const { return items.end(); } -- cgit v1.2.3