30 #ifndef _GLIBCXX_ERASE_IF_H
31 #define _GLIBCXX_ERASE_IF_H 1
33 #pragma GCC system_header
35 #if __cplusplus >= 201402L
39 _GLIBCXX_BEGIN_NAMESPACE_VERSION
41 #if __cplusplus > 201703L
42 # define __cpp_lib_erase_if 202002L
47 template<
typename _Container,
typename _Predicate>
48 typename _Container::size_type
49 __erase_nodes_if(_Container& __cont, _Predicate __pred)
51 typename _Container::size_type __num = 0;
52 for (
auto __iter = __cont.begin(), __last = __cont.end();
57 __iter = __cont.erase(__iter);
67 _GLIBCXX_END_NAMESPACE_VERSION
ISO C++ entities toplevel namespace is std.