// Copyright (c) 2023 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_UTIL_INSERT_H #define BITCOIN_UTIL_INSERT_H #include 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_INSERT_H