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

Read&hyphen;only random&hyphen;access view over an indexed C&hyphen;handle collection&period;

== Synopsis

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

[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&period;

== Type Aliases

[cols="1,4"]
|===
| Name| Description
| xref:btck/Range-01/const_iterator.adoc[`const&lowbar;iterator`] 
| Const iterator alias (same as iterator)&period;
| xref:btck/Range-01/difference_type.adoc[`difference&lowbar;type`] 
| Signed distance between iterators&period;
| xref:btck/Range-01/iterator.adoc[`iterator`] 
| The range&apos;s iterator type&period;
| xref:btck/Range-01/value_type.adoc[`value&lowbar;type`] 
| The element type produced by the accessor&period;
|===


== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:btck/Range-01/2constructor.adoc[`Range`]         [.small]#[constructor]#
| Constructs a range viewing `container&period;`
| xref:btck/Range-01/at.adoc[`at`] 
| Returns the element at `index` with bounds checking&period;
| xref:btck/Range-01/back.adoc[`back`] 
| Returns the last element&period;
| xref:btck/Range-01/begin.adoc[`begin`] 
| Returns an iterator to the first element&period;
| xref:btck/Range-01/cbegin.adoc[`cbegin`] 
| Returns a const iterator to the first element&period;
| xref:btck/Range-01/cend.adoc[`cend`] 
| Returns a const iterator past the last element&period;
| xref:btck/Range-01/empty.adoc[`empty`] 
| Reports whether the range holds no elements&period;
| xref:btck/Range-01/end.adoc[`end`] 
| Returns an iterator past the last element&period;
| xref:btck/Range-01/front.adoc[`front`] 
| Returns the first element&period;
| xref:btck/Range-01/operator_subs.adoc[`operator&lsqb;&rsqb;`] 
| Returns the element at `index` without bounds checking&period;
| xref:btck/Range-01/size.adoc[`size`] 
| Returns the number of elements in the range&period;
|===



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