[#btck-check]
= xref:btck.adoc[btck]::check
:relfileprefix: ../
:mrdocs:

Throws if a freshly returned C handle is null, otherwise passes it through&period;

== Synopsis

Declared in `&lt;kernel&sol;bitcoinkernel&lowbar;wrapper&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename T&gt;
T
check(T ptr);
----

== Return Value

`ptr` unchanged when it is non&hyphen;null&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ptr*
| The pointer returned by a `btck&lowbar;&ast;` creation function&period;
|===


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