From 9439f76dddfb9e4642bcf4f2ca780ca8992fa662 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Fri, 5 Feb 2021 12:03:41 +1000 Subject: [PATCH] set/dset: add `insert` for symmetry with the STL --- set/dset.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/set/dset.hpp b/set/dset.hpp index 29fc6966..d8331cf3 100644 --- a/set/dset.hpp +++ b/set/dset.hpp @@ -79,6 +79,11 @@ namespace cruft::set { return add (1, val); } + void insert (ValueT const &val) + { + return add (val); + } + /// A list of items to remove from this store. /// /// Items must be in sorted order, and must be a subset of this