diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-04-14 16:05:59 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-04-14 16:05:59 +0200 |
| commit | 7b96b3ceec5d14874628cd8b9cb7a827d266b2f4 (patch) | |
| tree | aaca321f02a8061e69b848ea8c1717b7305ef6a4 /src/util.h | |
| parent | 2c4dcc782d1db5422e9ccefee8ab8fd3639ea064 (diff) | |
Replace slightly weird add_font_assets() API.
Diffstat (limited to 'src/util.h')
| -rw-r--r-- | src/util.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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)); +} + + } |
