[#wallet-OutputGroup-Insert]
= xref:wallet.adoc[wallet]::xref:wallet/OutputGroup.adoc[OutputGroup]::Insert
:relfileprefix: ../../
:mrdocs:

Add an output to the group, updating its aggregate values&period;

== Synopsis

Declared in `&lt;wallet&sol;coinselection&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
Insert(
    std::shared&lowbar;ptr&lt;COutput&gt; const& output,
    size&lowbar;t ancestors,
    size&lowbar;t cluster&lowbar;count);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *output*
| The output to add&period;
| *ancestors*
| Number of unconfirmed ancestors contributed by the output&period;
| *cluster&lowbar;count*
| Cluster count of the output&period;
|===


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