55#ifndef _GLIBCXX_VECTOR
56#define _GLIBCXX_VECTOR 1
58#pragma GCC system_header
71#ifndef _GLIBCXX_EXPORT_TEMPLATE
79#define __glibcxx_want_constexpr_vector
80#define __glibcxx_want_erase_if
81#define __glibcxx_want_incomplete_container_elements
82#define __glibcxx_want_nonmember_container_access
85#if __cplusplus >= 201703L
87namespace std _GLIBCXX_VISIBILITY(default)
89_GLIBCXX_BEGIN_NAMESPACE_VERSION
91 template<
typename _Tp>
95 namespace _GLIBCXX_STD_C::pmr {
96 template<
typename _Tp>
98 = _GLIBCXX_STD_C::vector<_Tp, std::pmr::polymorphic_allocator<_Tp>>;
101_GLIBCXX_END_NAMESPACE_VERSION
105#ifdef __cpp_lib_erase_if
106namespace std _GLIBCXX_VISIBILITY(default)
108_GLIBCXX_BEGIN_NAMESPACE_VERSION
110 template<
typename _Tp,
typename _Alloc,
typename _Predicate>
112 inline typename vector<_Tp, _Alloc>::size_type
113 erase_if(vector<_Tp, _Alloc>&
__cont, _Predicate __pred)
116 _GLIBCXX_STD_C::vector<_Tp, _Alloc>& __ucont =
__cont;
117 const auto __osz =
__cont.size();
118 const auto __end = __ucont.end();
119 auto __removed = std::__remove_if(__ucont.begin(), __end,
120 __ops::__pred_iter(std::ref(__pred)));
121 if (__removed != __end)
125 return __osz -
__cont.size();
131 template<
typename _Tp,
typename _Alloc,
typename _Up>
133 inline typename vector<_Tp, _Alloc>::size_type
134 erase(vector<_Tp, _Alloc>&
__cont,
const _Up& __value)
137 _GLIBCXX_STD_C::vector<_Tp, _Alloc>& __ucont =
__cont;
138 const auto __osz =
__cont.size();
139 const auto __end = __ucont.end();
140 auto __removed = std::__remove_if(__ucont.begin(), __end,
141 __ops::__iter_equals_val(__value));
142 if (__removed != __end)
146 return __osz -
__cont.size();
151_GLIBCXX_END_NAMESPACE_VERSION
ISO C++ entities toplevel namespace is std.
GNU extensions for public use.
A standard container which offers fixed time access to individual elements in any order.