From 5b38c030fae1fdbfbe620f8f3e8f5436b1328680 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Tue, 10 Nov 2020 11:26:01 +1000 Subject: [PATCH] set/dset: add scalar `add` --- set/dset.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/set/dset.hpp b/set/dset.hpp index 2c10acab..5d52810c 100644 --- a/set/dset.hpp +++ b/set/dset.hpp @@ -64,6 +64,12 @@ namespace cruft::set { m_size += count; } + /// Add the value to the set + void add (ValueT const &val) + { + return add (1, val); + } + /// A list of items to remove from this store. /// /// Items must be in sorted order, and must be a subset of this