22 #ifndef USSHRINKABLEVECTOR_H
23 #define USSHRINKABLEVECTOR_H
25 #include "usGlobalConfig.h"
41 static std::vector<E> emptyVector;
46 typedef typename container_type::iterator
iterator;
48 typedef typename container_type::size_type
size_type;
49 typedef typename container_type::reference
reference;
53 : container(emptyVector)
59 return container.begin();
64 return container.begin();
69 return container.end();
72 const_iterator
end()
const
74 return container.end();
79 return container.front();
84 return container.front();
89 return container.back();
92 const_reference
back()
const
94 return container.back();
99 return container.erase(pos);
102 iterator
erase(iterator first, iterator last)
104 return container.erase(first, last);
109 container.pop_back();
114 return container.empty();
124 return container.size();
127 reference
at(size_type pos)
129 return container.at(pos);
132 const_reference
at(size_type pos)
const
134 return container.at(pos);
149 friend class ModuleHooks;
150 friend class ServiceHooks;
153 : container(container)
156 container_type& container;
160 std::vector<E> ShrinkableVector<E>::emptyVector;
164 #endif // USSHRINKABLEVECTOR_H
container_type::reference reference
reference at(size_type pos)
const_iterator end() const
const_reference back() const
std::vector< E > container_type
iterator erase(iterator pos)
container_type::const_iterator const_iterator
const_reference front() const
container_type::iterator iterator
const_reference operator[](size_type i) const
container_type::const_reference const_reference
const_iterator begin() const
container_type::size_type size_type
const_reference at(size_type pos) const
reference operator[](size_type i)
iterator erase(iterator first, iterator last)