55#ifndef _GLIBCXX_VECTOR
56#define _GLIBCXX_VECTOR 1
59#pragma GCC system_header
73#ifndef _GLIBCXX_EXPORT_TEMPLATE
81#define __glibcxx_want_algorithm_default_value_type
82#define __glibcxx_want_allocator_traits_is_always_equal
83#define __glibcxx_want_constexpr_vector
84#define __glibcxx_want_erase_if
85#define __glibcxx_want_incomplete_container_elements
86#define __glibcxx_want_nonmember_container_access
89#if __cplusplus >= 201703L
91namespace std _GLIBCXX_VISIBILITY(default)
93_GLIBCXX_BEGIN_NAMESPACE_VERSION
95 template<
typename _Tp>
99 namespace _GLIBCXX_STD_C::pmr {
100 template<
typename _Tp>
102 = _GLIBCXX_STD_C::vector<_Tp, std::pmr::polymorphic_allocator<_Tp>>;
105_GLIBCXX_END_NAMESPACE_VERSION
109#ifdef __cpp_lib_erase_if
110namespace std _GLIBCXX_VISIBILITY(default)
112_GLIBCXX_BEGIN_NAMESPACE_VERSION
114 template<
typename _Tp,
typename _Alloc,
typename _Predicate>
116 inline typename vector<_Tp, _Alloc>::size_type
117 erase_if(vector<_Tp, _Alloc>&
__cont, _Predicate __pred)
120 _GLIBCXX_STD_C::vector<_Tp, _Alloc>& __ucont =
__cont;
121 const auto __osz =
__cont.size();
122 const auto __end = __ucont.end();
123 auto __removed = std::__remove_if(__ucont.begin(), __end,
124 __ops::__pred_iter(std::ref(__pred)));
125 if (__removed != __end)
129 return __osz -
__cont.size();
135 template<
typename _Tp,
typename _Alloc,
136 typename _Up _GLIBCXX26_DEF_VAL_T(_Tp)>
138 inline typename vector<_Tp, _Alloc>::size_type
139 erase(vector<_Tp, _Alloc>&
__cont,
const _Up& __value)
142 _GLIBCXX_STD_C::vector<_Tp, _Alloc>& __ucont =
__cont;
143 const auto __osz =
__cont.size();
144 const auto __end = __ucont.end();
145 auto __removed = std::__remove_if(__ucont.begin(), __end,
146 __ops::__iter_equals_val(__value));
147 if (__removed != __end)
151 return __osz -
__cont.size();
156_GLIBCXX_END_NAMESPACE_VERSION
160#ifdef __glibcxx_format_ranges
163namespace std _GLIBCXX_VISIBILITY(default)
165_GLIBCXX_BEGIN_NAMESPACE_VERSION
168 template<__format::__
char _CharT>
169 struct formatter<_GLIBCXX_STD_C::_Bit_reference, _CharT>
173 constexpr typename basic_format_parse_context<_CharT>::iterator
174 parse(basic_format_parse_context<_CharT>& __pc)
175 {
return _M_f.template _M_parse<bool>(__pc); }
179 template<
typename _Out>
180 typename basic_format_context<_Out, _CharT>::iterator
181 format(
const _GLIBCXX_STD_C::_Bit_reference& __u,
182 basic_format_context<_Out, _CharT>& __fc)
const
183 {
return _M_f.format(
static_cast<bool>(__u), __fc); }
186 __format::__formatter_int<_CharT> _M_f;
188_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.