[#CTxMemPool-GetIter-0b]
= xref:CTxMemPool.adoc[CTxMemPool]::GetIter
:relfileprefix: ../
:mrdocs:

`GetIter` overloads

== Synopses

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

Returns an iterator to the given hash, if found


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f95135d2738), requires&lowbar;capability(0x7f9501b11b18), requires&lowbar;capability(0x7f950ec77d08), requires&lowbar;capability(0x7f9525ea7a58), requires&lowbar;capability(0x7f9515097198), requires&lowbar;capability(0x7f950826b438), requires&lowbar;capability(0x7f94f856eb48), requires&lowbar;capability(0x7f9513c58d38)&rsqb;&rsqb;
std::optional&lt;txiter&gt;
xref:CTxMemPool/GetIter-08.adoc[GetIter](xref:Txid.adoc[Txid] const& txid) const;
----

[.small]#xref:CTxMemPool/GetIter-08.adoc[_» more&period;&period;&period;_]#

Returns an iterator to the given witness hash, if found


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f95135d27f8), requires&lowbar;capability(0x7f9501b11bd8), requires&lowbar;capability(0x7f950ec77dc8), requires&lowbar;capability(0x7f9525ea7b18), requires&lowbar;capability(0x7f9515097258), requires&lowbar;capability(0x7f950826b4f8), requires&lowbar;capability(0x7f94f856ec08), requires&lowbar;capability(0x7f9513c58df8)&rsqb;&rsqb;
std::optional&lt;txiter&gt;
xref:CTxMemPool/GetIter-05.adoc[GetIter](xref:Wtxid.adoc[Wtxid] const& wtxid) const;
----

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

== Return Value

An iterator to the entry, or std&colon;&colon;nullopt if not present&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *txid*
| The txid to look up&period;
| *wtxid*
| The wtxid to look up&period;
|===


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