39 typedef typename std::vector<value_type>
list_t;
40 typedef typename std::vector<value_type>::iterator
iterator;
81 bool erase (
const value_type& x_) {
82 iterator it =
begin ();
83 while (it !=
end ()) {
84 if ((*it) == x_) {
erase (it);
break; }
bool erase(const value_type &x_)
Remove element.
virtual ~Repository()
Destructor.
const_iterator end() const
Get constant iterator to the end of the repository.
void push_back(const value_type &x_)
Add new element to the repository.
iterator begin()
Get iterator to the first element of the repository.
void erase(iterator position_)
Remove element at the position_ iterator.
const_iterator begin() const
Get constant iterator to the first element of the repository.
void clear()
Empty repository.
iterator end()
Get iterator to the end of the repository.
bool empty() const
Return true if repository is empty.
std::vector< value_type >::iterator iterator
std::vector< value_type > list_t
size_type size() const
Return number of elements in the repository.
std::vector< value_type >::const_iterator const_iterator