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

`insert` overloads

== Synopses

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

Simplification of std insertion&colon; append all elements of src to dst&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename Tdst,
    typename Tsrc&gt;
void
xref:util/insert-0e.adoc[insert](
    Tdst& dst,
    Tsrc const& src);
----

[.small]#xref:util/insert-0e.adoc[_» more&period;&period;&period;_]#

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


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

[.small]#xref:util/insert-05.adoc[_» more&period;&period;&period;_]#

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


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

[.small]#xref:util/insert-04.adoc[_» more&period;&period;&period;_]#

== Parameters

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


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