56#define _GLIBCXX_DEQUE 1
59#pragma GCC system_header
73#define __glibcxx_want_algorithm_default_value_type
74#define __glibcxx_want_allocator_traits_is_always_equal
75#define __glibcxx_want_containers_ranges
76#define __glibcxx_want_erase_if
77#define __glibcxx_want_nonmember_container_access
84#if __cplusplus >= 201703L
86namespace std _GLIBCXX_VISIBILITY(default)
88_GLIBCXX_BEGIN_NAMESPACE_VERSION
91 template<
typename _Tp>
92 using deque = std::deque<_Tp, polymorphic_allocator<_Tp>>;
94_GLIBCXX_END_NAMESPACE_VERSION
98#ifdef __cpp_lib_erase_if
99namespace std _GLIBCXX_VISIBILITY(default)
101_GLIBCXX_BEGIN_NAMESPACE_VERSION
103 template<
typename _Tp,
typename _Alloc,
typename _Predicate>
104 inline typename deque<_Tp, _Alloc>::size_type
107 using namespace __gnu_cxx;
108 _GLIBCXX_STD_C::deque<_Tp, _Alloc>& __ucont = __cont;
109 const auto __osz = __cont.size();
110 const auto __end = __ucont.end();
111 auto __removed = std::__remove_if(__ucont.begin(), __end,
112 __ops::__pred_iter(
std::ref(__pred)));
113 if (__removed != __end)
115 __cont.erase(__niter_wrap(__cont.begin(), __removed),
117 return __osz - __cont.size();
123 template<
typename _Tp,
typename _Alloc,
124 typename _Up _GLIBCXX26_DEF_VAL_T(_Tp)>
125 inline typename deque<_Tp, _Alloc>::size_type
128 using namespace __gnu_cxx;
129 _GLIBCXX_STD_C::deque<_Tp, _Alloc>& __ucont = __cont;
130 const auto __osz = __cont.size();
131 const auto __end = __ucont.end();
132 auto __removed = std::__remove_if(__ucont.begin(), __end,
133 __ops::__iter_equals_val(__value));
134 if (__removed != __end)
136 __cont.erase(__niter_wrap(__cont.begin(), __removed),
138 return __osz - __cont.size();
143_GLIBCXX_END_NAMESPACE_VERSION
ISO C++ entities toplevel namespace is std.
constexpr reference_wrapper< _Tp > ref(_Tp &__t) noexcept
Denotes a reference should be taken to a variable.
A standard container using fixed-size memory allocation and constant-time manipulation of elements at...