diff --git a/src/util.h b/src/util.h --- a/src/util.h +++ b/src/util.h @@ -314,4 +314,18 @@ std::string CopyrightHolders(const std::string &strPrefix); +namespace util { + +//! Simplification of std insertion +template +inline void insert(Tdst &dst, const Tsrc &src) { + dst.insert(dst.begin(), src.begin(), src.end()); +} +template +inline void insert(std::set &dst, const Tsrc &src) { + dst.insert(src.begin(), src.end()); +} + +} // namespace util + #endif // BITCOIN_UTIL_H