[#TxGraph-Ref-2constructor-0a]
= xref:TxGraph.adoc[TxGraph]::xref:TxGraph/Ref.adoc[Ref]::Ref
:relfileprefix: ../../
:mrdocs:

Constructors

== Synopses

Declared in `&lt;txgraph&period;h&gt;`

Construct an empty Ref&period; It can be initialized through TxGraph&colon;&colon;AddTransaction&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:TxGraph/Ref/2constructor-06.adoc[Ref]() noexcept = default;
----

[.small]#xref:TxGraph/Ref/2constructor-06.adoc[_» more&period;&period;&period;_]#

Copy construction is disabled&colon; a TxGraph entry can have at most one Ref pointing to it&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:TxGraph/Ref/2constructor-00.adoc[Ref](xref:TxGraph/Ref.adoc[Ref] const& other) = delete;
----

[.small]#xref:TxGraph/Ref/2constructor-00.adoc[_» more&period;&period;&period;_]#

Move&hyphen;construct a Ref, transferring ownership of the referenced transaction&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:TxGraph/Ref/2constructor-07.adoc[Ref](xref:TxGraph/Ref.adoc[Ref]&& other) noexcept;
----

[.small]#xref:TxGraph/Ref/2constructor-07.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *other*
| The Ref being copied from&period;
|===


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