We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07ce278 commit 173e18aCopy full SHA for 173e18a
src/util.h
@@ -355,4 +355,18 @@ std::string CopyrightHolders(const std::string& strPrefix);
355
*/
356
int ScheduleBatchPriority(void);
357
358
+namespace util {
359
+
360
+//! Simplification of std insertion
361
+template <typename Tdst, typename Tsrc>
362
+inline void insert(Tdst& dst, const Tsrc& src) {
363
+ dst.insert(dst.begin(), src.begin(), src.end());
364
+}
365
+template <typename TsetT, typename Tsrc>
366
+inline void insert(std::set<TsetT>& dst, const Tsrc& src) {
367
+ dst.insert(src.begin(), src.end());
368
369
370
+} // namespace util
371
372
#endif // BITCOIN_UTIL_H
0 commit comments