RTI Connext Modern C++ API Version 7.5.0
rti::sub::SampleIterator< T > Class Template Reference

A random-access iterator of LoanedSample. More...

#include <SampleIterator.hpp>

Public Member Functions

SampleIteratoroperator++ ()
 

Detailed Description

template<typename T>
class rti::sub::SampleIterator< T >

A random-access iterator of LoanedSample.

See also
dds::sub::LoanedSamples

Member Function Documentation

◆ operator++()

template<typename T >
SampleIterator & rti::sub::SampleIterator< T >::operator++ ( )
inline

Coverity complains about this increment because it may overflow. However the user is responsible for not incrementing the iterator beyond the end of the sequence when accessing the iterator. With the current implementation we are providing a big enough iterator to iterate over a full sequence without overflowing.