22 #ifndef USSHRINKABLEVECTOR_H
23 #define USSHRINKABLEVECTOR_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();
74 return container.end();
79 return container.front();
84 return container.front();
89 return container.back();
94 return container.back();
99 return container.erase(pos);
104 return container.erase(first, last);
109 container.pop_back();
114 return container.empty();
124 return container.size();
129 return container.at(pos);
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