[#CChain-Contains]
= xref:CChain.adoc[CChain]::Contains
:relfileprefix: ../
:mrdocs:

Efficiently check whether a block is present in this chain&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
Contains(xref:CBlockIndex.adoc[CBlockIndex] const& index) const;
----

== Return Value

True if the entry is part of this chain, otherwise false&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *index*
| The block index entry to look for&period;
|===


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