Changeset View
Changeset View
Standalone View
Standalone View
include/forward_list
Show First 20 Lines • Show All 179 Lines • ▼ Show 20 Lines | |||||
#include <__config> | #include <__config> | ||||
#include <initializer_list> | #include <initializer_list> | ||||
#include <memory> | #include <memory> | ||||
#include <limits> | #include <limits> | ||||
#include <iterator> | #include <iterator> | ||||
#include <algorithm> | #include <algorithm> | ||||
#include <version> | #include <version> | ||||
#if _LIBCPP_STD_VER > 14 | |||||
#include <__memory_resource_base> | |||||
#endif | |||||
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) | #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) | ||||
#pragma GCC system_header | #pragma GCC system_header | ||||
#endif | #endif | ||||
_LIBCPP_PUSH_MACROS | _LIBCPP_PUSH_MACROS | ||||
#include <__undef_macros> | #include <__undef_macros> | ||||
▲ Show 20 Lines • Show All 1,575 Lines • ▼ Show 20 Lines | |||||
template <class _Tp, class _Allocator, class _Up> | template <class _Tp, class _Allocator, class _Up> | ||||
inline _LIBCPP_INLINE_VISIBILITY | inline _LIBCPP_INLINE_VISIBILITY | ||||
void erase(forward_list<_Tp, _Allocator>& __c, const _Up& __v) | void erase(forward_list<_Tp, _Allocator>& __c, const _Up& __v) | ||||
{ _VSTD::erase_if(__c, [&](auto& __elem) { return __elem == __v; }); } | { _VSTD::erase_if(__c, [&](auto& __elem) { return __elem == __v; }); } | ||||
#endif | #endif | ||||
_LIBCPP_END_NAMESPACE_STD | _LIBCPP_END_NAMESPACE_STD | ||||
#if _LIBCPP_STD_VER > 14 | |||||
_LIBCPP_BEGIN_NAMESPACE_STD | |||||
namespace pmr | |||||
{ | |||||
template <class _ValueT> | |||||
using forward_list = _VSTD::forward_list<_ValueT, polymorphic_allocator<_ValueT>>; | |||||
} | |||||
_LIBCPP_END_NAMESPACE_STD | |||||
#endif | |||||
_LIBCPP_POP_MACROS | _LIBCPP_POP_MACROS | ||||
#endif // _LIBCPP_FORWARD_LIST | #endif // _LIBCPP_FORWARD_LIST |