|
Ruby 4.1.0dev (2026-10-21 revision 536dc6f98b72e6999a84bb6373562c43cb1ddf8a)
|
The nodes in a list, usable in a range-based for loop. More...
#include <node.hpp>
Public Member Functions | |
| node_range (const pm_node_list_t &list PRISM_LIFETIMEBOUND) noexcept | |
| Create a range over the nodes in the given list. | |
| pm_node_t *const * | begin () const noexcept |
| A pointer to the first node. | |
| pm_node_t *const * | end () const noexcept |
| A pointer one past the last node. | |
| std::size_t | size () const noexcept |
| The number of nodes. | |
| bool | empty () const noexcept |
| Whether there are no nodes. | |
The nodes in a list, usable in a range-based for loop.
It refers to the list rather than copying it, so the list must outlive it.
|
inlineexplicitnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |