ShrinkableVector

template <class E>
class cppmicroservices::ShrinkableVector

A std::vector style container allowing query and removal operations only.

Public Types

typedef std::vector<E> container_type
typedef container_type::iterator iterator
typedef container_type::const_iterator const_iterator
typedef container_type::size_type size_type
typedef container_type::reference reference
typedef container_type::const_reference const_reference
typedef container_type::value_type value_type

Public Functions

ShrinkableVector()
iterator begin()
const_iterator begin() const
iterator end()
const_iterator end() const
reference front()
const_reference front() const
reference back()
const_reference back() const
iterator erase(iterator pos)
iterator erase(iterator first, iterator last)
void pop_back()
bool empty() const
void clear()
size_type size() const
reference at(size_type pos)
const_reference at(size_type pos) const
const_reference operator[](size_type i) const

Deprecated since version 3.1.0: This function exists only to maintain backwards compatibility and will be removed in the next major release. Use at(size_type pos) instead.

reference operator[](size_type i)

Deprecated since version 3.1.0: This function exists only to maintain backwards compatibility and will be removed in the next major release. Use at(size_type pos) instead.