Changeset View
Changeset View
Standalone View
Standalone View
include/vector
Show First 20 Lines • Show All 280 Lines • ▼ Show 20 Lines | |||||
#include <algorithm> | #include <algorithm> | ||||
#include <cstring> | #include <cstring> | ||||
#include <version> | #include <version> | ||||
#include <__split_buffer> | #include <__split_buffer> | ||||
#include <__functional_base> | #include <__functional_base> | ||||
#include <__debug> | #include <__debug> | ||||
#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,982 Lines • ▼ Show 20 Lines | |||||
template <class _Tp, class _Allocator, class _Predicate> | template <class _Tp, class _Allocator, class _Predicate> | ||||
inline _LIBCPP_INLINE_VISIBILITY | inline _LIBCPP_INLINE_VISIBILITY | ||||
void erase_if(vector<_Tp, _Allocator>& __c, _Predicate __pred) | void erase_if(vector<_Tp, _Allocator>& __c, _Predicate __pred) | ||||
{ __c.erase(_VSTD::remove_if(__c.begin(), __c.end(), __pred), __c.end()); } | { __c.erase(_VSTD::remove_if(__c.begin(), __c.end(), __pred), __c.end()); } | ||||
#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 vector = _VSTD::vector<_ValueT, polymorphic_allocator<_ValueT>>; | |||||
} | |||||
_LIBCPP_END_NAMESPACE_STD | |||||
#endif | |||||
_LIBCPP_POP_MACROS | _LIBCPP_POP_MACROS | ||||
#endif // _LIBCPP_VECTOR | #endif // _LIBCPP_VECTOR | ||||
Context not available. |