LibraryLink Utilities  3.0.1
Modern C++ wrapper over LibraryLink and WSTP
LLU::ValueAdaptor< T > Struct Template Reference

Description

template<typename T>
struct LLU::ValueAdaptor< T >

Iterator adaptor for DataList that makes begin() and end() return proxy iterators for node values.

Mostly useful in range-based for loops.

Template Parameters
T- a DataList node value type

Inherits LLU::Detail::IteratorAdaptor< T, IteratorType >.

#include <DataList.h>

Public Types

using iterator = IteratorType
 

Public Member Functions

 ValueAdaptor (DataList< T > &d)
 Create ValueAdaptor to an existing DataList. More...
 
iterator begin () const
 
iterator cbegin ()
 
iterator end () const
 
iterator end ()
 

Constructor & Destructor Documentation

◆ ValueAdaptor()

template<typename T >
LLU::ValueAdaptor< T >::ValueAdaptor ( DataList< T > &  d)
inlineexplicit

Create ValueAdaptor to an existing DataList.

Parameters
d- DataList with nodes of type T