19 #ifndef FASTDDS_DDS_CORE__STACKALLOCATEDSEQUENCE_HPP
20 #define FASTDDS_DDS_CORE__STACKALLOCATEDSEQUENCE_HPP
27 #include <fastdds/dds/core/LoanableArray.hpp>
28 #include <fastdds/dds/core/LoanableTypedCollection.hpp>
37 template<
typename T, LoanableCollection::
size_type num_items>
76 if (new_length > num_items)
78 throw std::bad_alloc();
bool has_ownership_
Definition: LoanableCollection.hpp:243
size_type maximum_
Definition: LoanableCollection.hpp:240
int32_t size_type
Definition: LoanableCollection.hpp:37
size_type length_
Definition: LoanableCollection.hpp:241
element_type * elements_
Definition: LoanableCollection.hpp:242
void * element_type
Definition: LoanableCollection.hpp:38
A type-safe accessible collection of generic opaque pointers that can receive the buffer from outside...
Definition: LoanableTypedCollection.hpp:40
Definition: DomainParticipant.hpp:46
A type-safe, ordered collection of elements allocated on the stack, which can be loaned to a Loanable...
Definition: LoanableArray.hpp:35
A type-safe, ordered collection of elements allocated on the stack.
Definition: StackAllocatedSequence.hpp:39
bool has_ownership_
Definition: LoanableCollection.hpp:243
StackAllocatedSequence & operator=(const StackAllocatedSequence &)=delete
size_type maximum_
Definition: LoanableCollection.hpp:240
size_type length_
Definition: LoanableCollection.hpp:241
StackAllocatedSequence(const StackAllocatedSequence &)=delete
StackAllocatedSequence()
Definition: StackAllocatedSequence.hpp:43
StackAllocatedSequence(StackAllocatedSequence &&)=delete
element_type * elements_
Definition: LoanableCollection.hpp:242
~StackAllocatedSequence()=default
void resize(LoanableCollection::size_type new_length) override
Definition: StackAllocatedSequence.hpp:72