[#absl-Cord-InlineRep-CommitTree]
= xref:absl.adoc[absl]::xref:absl/Cord.adoc[Cord]::xref:absl/Cord.adoc[InlineRep]::CommitTree
:relfileprefix: ../../../
:mrdocs:

Commits a newly created or updated `rep` root value into this cord&period;

== Synopsis

Declared in `&lt;absl&sol;strings&sol;cord&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
CommitTree(
    xref:absl/Cord.adoc[CordRep] const* old&lowbar;rep,
    xref:absl/Cord.adoc[CordRep]* rep,
    xref:absl/Cord.adoc[CordzUpdateScope] const& scope,
    xref:absl/Cord.adoc[MethodIdentifier] method);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *old&lowbar;rep*
| The previous root value of the cord&period;
| *rep*
| The new root value to commit&period;
| *scope*
| The update scope guarding any referenced CordzInfo&period;
| *method*
| The originating public API method, for Cordz sampling&period;
|===


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