30#ifndef _GLIBCXX_EXPERIMENTAL_FORWARD_LIST
31#define _GLIBCXX_EXPERIMENTAL_FORWARD_LIST 1
33#pragma GCC system_header
37#if __cplusplus >= 201402L
42namespace std _GLIBCXX_VISIBILITY(default)
44_GLIBCXX_BEGIN_NAMESPACE_VERSION
48inline namespace fundamentals_v2
50 template<
typename _Tp,
typename _Alloc,
typename _Predicate>
52 erase_if(forward_list<_Tp, _Alloc>& __cont, _Predicate __pred)
53 { __cont.remove_if(__pred); }
55 template<
typename _Tp,
typename _Alloc,
typename _Up>
57 erase(forward_list<_Tp, _Alloc>& __cont,
const _Up& __value)
59 using __elem_type =
typename forward_list<_Tp, _Alloc>::value_type;
60 std::experimental::erase_if(__cont, [&](__elem_type& __elem) {
61 return __elem == __value;
66 template<
typename _Tp>
67 using forward_list = std::forward_list<_Tp, polymorphic_allocator<_Tp>>;
73_GLIBCXX_END_NAMESPACE_VERSION
ISO C++ entities toplevel namespace is std.
Namespace for features defined in ISO Technical Specifications.