btck::Range

Read-only random-access view over an indexed C-handle collection.

Synopsis

Declared in <kernel/bitcoinkernel_wrapper.h>

class Range;

Description

Adapts a container that exposes SizeFunc and GetFunc into a standard range whose elements are lazily produced views.

Type Aliases

NameDescription
const_iterator Const iterator alias (same as iterator).
difference_type Signed distance between iterators.
iterator The range's iterator type.
value_type The element type produced by the accessor.

Member Functions

NameDescription
Range [constructor]Constructs a range viewing container.
at Returns the element at index with bounds checking.
back Returns the last element.
begin Returns an iterator to the first element.
cbegin Returns a const iterator to the first element.
cend Returns a const iterator past the last element.
empty Reports whether the range holds no elements.
end Returns an iterator past the last element.
front Returns the first element.
operator[] Returns the element at index without bounds checking.
size Returns the number of elements in the range.