30 #ifndef _GLIBCXX_EXPERIMENTAL_ERASE_IF_H 31 #define _GLIBCXX_EXPERIMENTAL_ERASE_IF_H 1 33 #pragma GCC system_header 35 #if __cplusplus >= 201402L 40 _GLIBCXX_BEGIN_NAMESPACE_VERSION
42 namespace experimental
44 inline namespace fundamentals_v2
48 template<
typename _Container,
typename _Predicate>
50 __erase_nodes_if(_Container& __cont, _Predicate __pred)
52 for (
auto __iter = __cont.begin(), __last = __cont.end();
56 __iter = __cont.erase(__iter);
65 _GLIBCXX_END_NAMESPACE_VERSION
70 #endif // _GLIBCXX_EXPERIMENTAL_ERASE_IF_H ISO C++ entities toplevel namespace is std.