insert overloads
Synopses
Declared in <util/insert.h>
Simplification of std insertion: append all elements of src to dst.
template<
typename Tdst,
typename Tsrc>
void
insert(
Tdst& dst,
Tsrc const& src);
Insert all elements of src into a std::set.
template<
typename TsetT,
typename Tsrc>
void
insert(
std::set<TsetT>& dst,
Tsrc const& src);
Insert all elements of src into a std::set with a custom comparator.
template<
typename TsetT,
typename Compare,
typename Tsrc>
void
insert(
std::set<TsetT, Compare>& dst,
Tsrc const& src);
Parameters
Name |
Description |
dst |
The container to insert into. |
src |
The container whose elements are inserted. |
Created with MrDocs