[#util-insert-04]
= xref:util.adoc[util]::insert
:relfileprefix: ../
:mrdocs:

Insert all elements of src into a std&colon;&colon;set with a custom comparator&period;

== Synopsis

Declared in `&lt;util&sol;insert&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename TsetT,
    typename Compare,
    typename Tsrc&gt;
void
insert(
    std::set&lt;TsetT, Compare&gt;& dst,
    Tsrc const& src);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *dst*
| The set to insert into&period;
| *src*
| The container whose elements are inserted&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
