19#ifndef FASTDDS_DDS_CORE__LOANABLETYPEDCOLLECTION_HPP
20#define FASTDDS_DDS_CORE__LOANABLETYPEDCOLLECTION_HPP
27#include <fastdds/dds/core/LoanableCollection.hpp>
38template<
typename T,
typename _NonConstEnabler = std::true_type>
58 template <
typename Enabler = _NonConstEnabler>
59 typename std::enable_if<Enabler::value, T>::type&
operator [](
64 throw std::out_of_range(
"");
89 throw std::out_of_range(
"");
92 return *
static_cast<const T*
>(
elements_[n]);
A collection of generic opaque pointers that can receive the buffer from outside (loan).
Definition LoanableCollection.hpp:34
int32_t size_type
Definition LoanableCollection.hpp:37
size_type length_
Definition LoanableCollection.hpp:241
element_type * elements_
Definition LoanableCollection.hpp:242
A type-safe accessible collection of generic opaque pointers that can receive the buffer from outside...
Definition LoanableTypedCollection.hpp:40
std::enable_if< Enabler::value, T >::type & operator[](size_type n)
Set an element of the sequence.
Definition LoanableTypedCollection.hpp:59
Definition DomainParticipant.hpp:45