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

Provides access to a collection of middleware-loaned samples. More...

#include <SharedSamplesImpl.hpp>

Public Types

typedef SampleIterator< T > iterator
 The iterator type. More...
 

Detailed Description

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

Provides access to a collection of middleware-loaned samples.

The samples in this container are loaned from the middleware and must be returned at some point.

To return the loan, use dds::sub::LoanedSamples::return_loan

The contents of this container should not be modified and references to the samples it contains are only valid before the loan is returned.

Template Parameters
TThe data type of the contained Samples

Member Typedef Documentation

◆ iterator

template<typename T >
typedef SampleIterator<T> rti::sub::SharedSamples< T >::iterator

The iterator type.