[#MAKE_RANGE_METHOD]
= MAKE&lowbar;RANGE&lowbar;METHOD
:mrdocs:

Defines a range accessor method `method&lowbar;name` over the given size and get functions&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
#define MAKE&lowbar;RANGE&lowbar;METHOD(method&lowbar;name, ContainerType, SizeFunc, GetFunc, container&lowbar;expr)

----

== Description

Emits an lvalue&hyphen;only overload returning a Range and deletes the rvalue overload so the range never dangles past a temporary&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *method&lowbar;name*
| The name of the accessor method to generate&period;
| *ContainerType*
| The container type the range iterates over&period;
| *SizeFunc*
| The member function pointer returning the element count&period;
| *GetFunc*
| The member function pointer returning an element by index&period;
| *container&lowbar;expr*
| The expression yielding the container instance to view&period;
|===


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