summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-04-14 16:05:59 +0200
committerCarl Hetherington <cth@carlh.net>2023-04-14 16:05:59 +0200
commit7b96b3ceec5d14874628cd8b9cb7a827d266b2f4 (patch)
treeaaca321f02a8061e69b848ea8c1717b7305ef6a4 /src/util.h
parent2c4dcc782d1db5422e9ccefee8ab8fd3639ea064 (diff)
Replace slightly weird add_font_assets() API.
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 8261a812..8338e7cc 100644
--- a/src/util.h
+++ b/src/util.h
@@ -155,6 +155,14 @@ private:
};
+template <class From, class To>
+void
+add_to_container(To& container, From source)
+{
+ std::copy(source.begin(), source.end(), std::back_inserter(container));
+}
+
+
}