29 #ifndef _GLIBCXX_EXPERIMENTAL_LIST
30 #define _GLIBCXX_EXPERIMENTAL_LIST 1
32 #pragma GCC system_header
34 #if __cplusplus >= 201402L
39 namespace std _GLIBCXX_VISIBILITY(default)
41 _GLIBCXX_BEGIN_NAMESPACE_VERSION
43 namespace experimental
45 inline namespace fundamentals_v2
47 template<
typename _Tp,
typename _Alloc,
typename _Predicate>
49 erase_if(list<_Tp, _Alloc>& __cont, _Predicate __pred)
50 { __cont.remove_if(__pred); }
52 template<
typename _Tp,
typename _Alloc,
typename _Up>
54 erase(list<_Tp, _Alloc>& __cont,
const _Up& __value)
56 using __elem_type =
typename list<_Tp, _Alloc>::value_type;
57 experimental::erase_if(__cont, [&](__elem_type& __elem) {
58 return __elem == __value;
63 template<
typename _Tp>
70 _GLIBCXX_END_NAMESPACE_VERSION
75 #endif // _GLIBCXX_EXPERIMENTAL_LIST
A standard container with linear time access to elements, and fixed time insertion/deletion at any po...