[#btck-Range-01] = xref:btck.adoc[btck]::Range :relfileprefix: ../ :mrdocs: Read‐only random‐access view over an indexed C‐handle collection. == Synopsis Declared in `<kernel/bitcoinkernel_wrapper.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class Range; ---- == Description Adapts a container that exposes `SizeFunc` and `GetFunc` into a standard range whose elements are lazily produced views. == Type Aliases [cols="1,4"] |=== | Name| Description | xref:btck/Range-01/const_iterator.adoc[`const_iterator`] | Const iterator alias (same as iterator). | xref:btck/Range-01/difference_type.adoc[`difference_type`] | Signed distance between iterators. | xref:btck/Range-01/iterator.adoc[`iterator`] | The range's iterator type. | xref:btck/Range-01/value_type.adoc[`value_type`] | The element type produced by the accessor. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:btck/Range-01/2constructor.adoc[`Range`] [.small]#[constructor]# | Constructs a range viewing `container.` | xref:btck/Range-01/at.adoc[`at`] | Returns the element at `index` with bounds checking. | xref:btck/Range-01/back.adoc[`back`] | Returns the last element. | xref:btck/Range-01/begin.adoc[`begin`] | Returns an iterator to the first element. | xref:btck/Range-01/cbegin.adoc[`cbegin`] | Returns a const iterator to the first element. | xref:btck/Range-01/cend.adoc[`cend`] | Returns a const iterator past the last element. | xref:btck/Range-01/empty.adoc[`empty`] | Reports whether the range holds no elements. | xref:btck/Range-01/end.adoc[`end`] | Returns an iterator past the last element. | xref:btck/Range-01/front.adoc[`front`] | Returns the first element. | xref:btck/Range-01/operator_subs.adoc[`operator[]`] | Returns the element at `index` without bounds checking. | xref:btck/Range-01/size.adoc[`size`] | Returns the number of elements in the range. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#