From 7b96b3ceec5d14874628cd8b9cb7a827d266b2f4 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 14 Apr 2023 16:05:59 +0200 Subject: Replace slightly weird add_font_assets() API. --- src/util.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/util.h') 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 +void +add_to_container(To& container, From source) +{ + std::copy(source.begin(), source.end(), std::back_inserter(container)); +} + + } -- cgit v1.2.3