Template Struct StackAllocatedSequence

Inheritance Relationships

Base Type

Struct Documentation

template<typename T, LoanableCollection::size_type num_items>
struct StackAllocatedSequence : public eprosima::fastdds::dds::LoanableTypedCollection<T>

A type-safe, ordered collection of elements allocated on the stack.

Public Types

using size_type = LoanableCollection::size_type
using element_type = LoanableCollection::element_type

Public Functions

inline StackAllocatedSequence()
~StackAllocatedSequence() = default
StackAllocatedSequence(const StackAllocatedSequence&) = delete
StackAllocatedSequence &operator=(const StackAllocatedSequence&) = delete
StackAllocatedSequence(StackAllocatedSequence&&) = delete
StackAllocatedSequence &operator=(StackAllocatedSequence&&) = delete

Protected Functions

inline virtual void resize(LoanableCollection::size_type new_length) override

Protected Attributes

size_type maximum_
size_type length_
element_type *elements_
bool has_ownership_