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

CRTP mixin adding witness&hyphen;stack accessors shared by the view and owning types&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename Derived&gt;
class WitnessStackApi;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:btck/WitnessStackApi-04/CountItems.adoc[`CountItems`] 
| Returns the number of items on the witness stack&period;
| xref:btck/WitnessStackApi-04/GetItem.adoc[`GetItem`] 
| Returns a single witness item by index&period;
| xref:btck/WitnessStackApi-04/Items-01.adoc[`Items`] 
| Returns a range over all witness items&period;
|===


== Friends

[cols="1,4"]
|===
| Name| Description
| `Derived`
| 
|===

== Derived Classes

[cols="1,4"]
|===
| Name| Description
| xref:btck/WitnessStack.adoc[`WitnessStack`] 
| Owning wrapper over a `btck&lowbar;WitnessStack`&period;
| xref:btck/WitnessStackView.adoc[`WitnessStackView`] 
| Non&hyphen;owning view over a `btck&lowbar;WitnessStack`&period;
|===


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