1 #ifndef QPID_INLINEVECTOR_H
2 #define QPID_INLINEVECTOR_H
40 template <
class T,
size_t Max,
class Alloc=std::allocator<T> >
41 class InlineVector :
public std::vector<T, InlineAllocator<Alloc, Max> >
43 typedef std::vector<T, InlineAllocator<Alloc, Max> > Base;
56 this->reserve(std::max(n, Max));
57 this->insert(this->end(), n, x);
61 this->reserve(std::max(x.size(), Max));
Base::allocator_type allocator_type
InlineVector(const InlineVector &x)
Base::value_type value_type
Base::size_type size_type
InlineVector(size_type n, const value_type &x=value_type(), const allocator_type &a=allocator_type())
InlineVector(const allocator_type &a=allocator_type())
This file was automatically generated from the AMQP specification.
A vector that stores up to Max elements in inline storage, otherwise uses normal vector allocation...