Clio  develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
util::config::ArrayView::Elements< T > Class Template Reference

A range over the elements of an array, viewed as T (ValueView or ObjectView). More...

Public Member Functions

 Elements (ArrayView array)
 Constructs the range over the given array.
ArrayIterator< T > begin () const
 Returns an iterator to the first element.
ArrayIterator< T > end () const
 Returns an iterator past the last element.

Detailed Description

template<typename T>
class util::config::ArrayView::Elements< T >

A range over the elements of an array, viewed as T (ValueView or ObjectView).

Constructor & Destructor Documentation

◆ Elements()

template<typename T>
util::config::ArrayView::Elements< T >::Elements ( ArrayView array)
inlineexplicit

Constructs the range over the given array.

Parameters
arrayThe array to iterate over; stored by value so the range never dangles

Member Function Documentation

◆ begin()

template<typename T>
ArrayIterator< T > util::config::ArrayView::Elements< T >::begin ( ) const
inlinenodiscard

Returns an iterator to the first element.

Returns
Iterator to the first element

◆ end()

template<typename T>
ArrayIterator< T > util::config::ArrayView::Elements< T >::end ( ) const
inlinenodiscard

Returns an iterator past the last element.

Returns
Iterator past the last element

The documentation for this class was generated from the following file: