30 #ifndef _GLIBCXX_ERASE_IF_H
31 #define _GLIBCXX_ERASE_IF_H 1
33 #pragma GCC system_header
35 #if __cplusplus >= 201402L
41 _GLIBCXX_BEGIN_NAMESPACE_VERSION
43 #if __cplusplus > 201703L
44 # define __cpp_lib_erase_if 202002L
49 template<
typename _Container,
typename _UnsafeContainer,
51 typename _Container::size_type
52 __erase_nodes_if(_Container&
__cont,
const _UnsafeContainer& __ucont,
55 typename _Container::size_type __num = 0;
56 for (
auto __iter = __ucont.begin(), __last = __ucont.end();
61 __iter =
__cont.erase(__iter);
71 _GLIBCXX_END_NAMESPACE_VERSION
ISO C++ entities toplevel namespace is std.