RTI Connext Traditional C++ API Version 7.5.0
connext::SampleIterator< T, IsConst > Class Template Reference

STL-compliant random-access iterator for SampleRef<T> More...

Public Member Functions

SampleIteratoroperator++ ()
 

Detailed Description

template<typename T, bool IsConst>
class connext::SampleIterator< T, IsConst >

STL-compliant random-access iterator for SampleRef<T>

See also
connext::LoanedSamples::begin

Member Function Documentation

◆ operator++()

template<typename T , bool IsConst>
SampleIterator & connext::SampleIterator< T, IsConst >::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.