[#GenTxid-swap]
= xref:GenTxid.adoc[GenTxid]::swap
:relfileprefix: ../
:mrdocs:

== Synopsis

Declared in `&lt;primitives&sol;transaction&lowbar;identifier&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;bool &lowbar;Dummy = true&gt;
requires &lowbar;&lowbar;all&lt;(&lowbar;&lowbar;dependent&lowbar;type&lt;is&lowbar;move&lowbar;constructible&lt;&lowbar;Types&gt;, &lowbar;Dummy&gt;&colon;&colon;value &amp;&amp;
                                 &lowbar;&lowbar;dependent&lowbar;type&lt;is&lowbar;swappable&lt;&lowbar;Types&gt;, &lowbar;Dummy&gt;&colon;&colon;value)&period;&period;&period;&gt;&colon;&colon;value
&lsqb;&lsqb;&lowbar;&lowbar;exclude&lowbar;from&lowbar;explicit&lowbar;instantiation&lowbar;&lowbar;, &lowbar;&lowbar;abi&lowbar;tag&lowbar;&lowbar;&rsqb;&rsqb;
constexpr
void
swap(variant&lt;transaction&lowbar;identifier&lt;false&gt;, transaction&lowbar;identifier&lt;true&gt;&gt;& &lowbar;&lowbar;that) noexcept(&sol;&ast; see-below &ast;&sol;);
----

== Exception specification

This function is potentially-throwing unless `&lowbar;&lowbar;all&lt;(is&lowbar;nothrow&lowbar;move&lowbar;constructible&lowbar;v&lt;&lowbar;Types&gt; &amp;&amp; is&lowbar;nothrow&lowbar;swappable&lowbar;v&lt;&lowbar;Types&gt;)&period;&period;&period;&gt;&colon;&colon;value`.


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