ShrinkableVector¶
- template <class E>
-
class
cppmicroservices::
ShrinkableVector
¶ A std::vector style container allowing query and removal operations only.
Public Types
-
template<>
usingcontainer_type
= std::vector<E>¶
-
template<>
usingiterator
= typename container_type::iterator¶
-
template<>
usingconst_iterator
= typename container_type::const_iterator¶
-
template<>
usingsize_type
= typename container_type::size_type¶
-
template<>
usingreference
= typename container_type::reference¶
-
template<>
usingconst_reference
= typename container_type::const_reference¶
-
template<>
usingvalue_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.
-
template<>