ShrinkableVector

template <class E>
class cppmicroservices::ShrinkableVector

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

Public Types

template<>
using container_type = std::vector<E>
template<>
using iterator = typename container_type::iterator
template<>
using const_iterator = typename container_type::const_iterator
template<>
using size_type = typename container_type::size_type
template<>
using reference = typename container_type::reference
template<>
using const_reference = typename container_type::const_reference
template<>
using value_type = typename container_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.