SOFA API  fd4087f0
Open source framework for multi-physics simuation
sofa::helper::IotaView< T > Class Template Reference

#include <IotaView.h>

Detailed Description

template<typename T>
class sofa::helper::IotaView< T >

Simple alternative to std::ranges::iota_view, compatible with pre-C++20

Classes

struct  iota_iterator
 

Public Member Functions

 IotaView (T start, T end)
 
iterator begin () const
 
iterator end () const
 
size () const
 
operator[] (T i) const
 
front () const
 
back () const
 
bool empty () const
 

Constructor details

◆ IotaView()

template<typename T >
sofa::helper::IotaView< T >::IotaView ( start,
end 
)
inline

Function details

◆ back()

template<typename T >
T sofa::helper::IotaView< T >::back ( ) const
inline

◆ begin()

template<typename T >
iterator sofa::helper::IotaView< T >::begin ( ) const
inline

◆ empty()

template<typename T >
bool sofa::helper::IotaView< T >::empty ( ) const
inline

◆ end()

template<typename T >
iterator sofa::helper::IotaView< T >::end ( ) const
inline

◆ front()

template<typename T >
T sofa::helper::IotaView< T >::front ( ) const
inline

◆ operator[]()

template<typename T >
T sofa::helper::IotaView< T >::operator[] ( i) const
inline

◆ size()

template<typename T >
T sofa::helper::IotaView< T >::size ( ) const
inline