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

Satisfied when a container exposes a size accessor and an indexed element accessor&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename Container,
    typename SizeFunc,
    typename GetFunc&gt;
concept IndexedContainer = requires(const Container&amp; c, SizeFunc size&lowbar;func, GetFunc get&lowbar;func, std&colon;&colon;size&lowbar;t i) &lcub;
    &lcub; std&colon;&colon;invoke(size&lowbar;func, c) &rcub; &hyphen;&gt; std&colon;&colon;convertible&lowbar;to&lt;std&colon;&colon;size&lowbar;t&gt;&semi;
    &lcub; std&colon;&colon;invoke(get&lowbar;func, c, i) &rcub;&semi; &sol;&sol; Return type is deduced
&rcub;;
----


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