STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Functions
experimental::fundamentals_v2 Namespace Reference

Functions

template<class _Ty , class _Alloc , class _Pr >
void erase_if (deque< _Ty, _Alloc > &_Cont, _Pr _Pred)
 
template<class _Ty , class _Alloc , class _Uty >
void erase (deque< _Ty, _Alloc > &_Cont, const _Uty &_Val)
 
template<class _Ty , class _Alloc , class _Pr >
void erase_if (forward_list< _Ty, _Alloc > &_Cont, _Pr _Pred)
 
template<class _Ty , class _Alloc , class _Uty >
void erase (forward_list< _Ty, _Alloc > &_Cont, const _Uty &_Val)
 
template<class _Ty , class _Alloc , class _Pr >
void erase_if (list< _Ty, _Alloc > &_Cont, _Pr _Pred)
 
template<class _Ty , class _Alloc , class _Uty >
void erase (list< _Ty, _Alloc > &_Cont, const _Uty &_Val)
 
template<class _Kty , class _Ty , class _Keylt , class _Alloc , class _Pr >
void erase_if (map< _Kty, _Ty, _Keylt, _Alloc > &_Cont, _Pr _Pred)
 
template<class _Kty , class _Ty , class _Keylt , class _Alloc , class _Pr >
void erase_if (multimap< _Kty, _Ty, _Keylt, _Alloc > &_Cont, _Pr _Pred)
 
template<class _Kty , class _Keylt , class _Alloc , class _Pr >
void erase_if (set< _Kty, _Keylt, _Alloc > &_Cont, _Pr _Pred)
 
template<class _Kty , class _Keylt , class _Alloc , class _Pr >
void erase_if (multiset< _Kty, _Keylt, _Alloc > &_Cont, _Pr _Pred)
 
template<class _Elem , class _Traits , class _Alloc , class _Pr >
void erase_if (basic_string< _Elem, _Traits, _Alloc > &_Cont, _Pr _Pred)
 
template<class _Elem , class _Traits , class _Alloc , class _Uty >
void erase (basic_string< _Elem, _Traits, _Alloc > &_Cont, const _Uty &_Val)
 
template<class _Kty , class _Ty , class _Hasher , class _Keyeq , class _Alloc , class _Pr >
void erase_if (unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc > &_Cont, _Pr _Pred)
 
template<class _Kty , class _Ty , class _Hasher , class _Keyeq , class _Alloc , class _Pr >
void erase_if (unordered_multimap< _Kty, _Ty, _Hasher, _Keyeq, _Alloc > &_Cont, _Pr _Pred)
 
template<class _Kty , class _Hasher , class _Keyeq , class _Alloc , class _Pr >
void erase_if (unordered_set< _Kty, _Hasher, _Keyeq, _Alloc > &_Cont, _Pr _Pred)
 
template<class _Kty , class _Hasher , class _Keyeq , class _Alloc , class _Pr >
void erase_if (unordered_multiset< _Kty, _Hasher, _Keyeq, _Alloc > &_Cont, _Pr _Pred)
 
template<class _Ty , class _Alloc , class _Pr >
void erase_if (vector< _Ty, _Alloc > &_Cont, _Pr _Pred)
 
template<class _Ty , class _Alloc , class _Uty >
void erase (vector< _Ty, _Alloc > &_Cont, const _Uty &_Val)
 
template<class _Container , class _Pr >
void _Erase_nodes_if (_Container &_Cont, _Pr &_Pred)
 
template<class _Container , class _Pr >
void _Erase_remove_if (_Container &_Cont, _Pr &_Pred)
 
template<class _Container , class _Uty >
void _Erase_remove (_Container &_Cont, const _Uty &_Val)
 

Function Documentation

template<class _Container , class _Pr >
void experimental::fundamentals_v2::_Erase_nodes_if ( _Container &  _Cont,
_Pr &  _Pred 
)
inline
23  { // erase each element satisfying _Pred
24  auto _First = _Cont.begin();
25  auto _Last = _Cont.end();
26  _DEBUG_POINTER_IF(_First != _Last, _Pred);
27  while (_First != _Last)
28  if (_Pred(*_First))
29  _First = _Cont.erase(_First);
30  else
31  ++_First;
32  }
_FwdIt const _Ty _Pr _Pred
Definition: algorithm:1985
#define _DEBUG_POINTER_IF(test, first)
Definition: xutility:820
_FwdIt _Last
Definition: algorithm:1936
template<class _Container , class _Uty >
void experimental::fundamentals_v2::_Erase_remove ( _Container &  _Cont,
const _Uty &  _Val 
)
inline
50  { // erase each element matching _Val
51  auto _First = _Cont.begin();
52  auto _Last = _Cont.end();
53  _Cont.erase(_Rechecked(_First,
55  }
_Iter & _Rechecked(_Iter &_Dest, _UIter _Src)
Definition: xutility:456
_In_ int _Val
Definition: vcruntime_string.h:62
_Iter _Unchecked(_Iter _Src)
Definition: xutility:426
_FwdIt _Last
Definition: algorithm:1936
_FwdIt _Remove_unchecked(_FwdIt _First, _FwdIt _Last, const _Ty &_Val)
Definition: algorithm:1447
template<class _Container , class _Pr >
void experimental::fundamentals_v2::_Erase_remove_if ( _Container &  _Cont,
_Pr &  _Pred 
)
inline
39  { // erase each element satisfying _Pred
40  auto _First = _Cont.begin();
41  auto _Last = _Cont.end();
42  _Cont.erase(_Rechecked(_First,
44  }
_FwdIt const _Ty _Pr _Pred
Definition: algorithm:1985
_Iter & _Rechecked(_Iter &_Dest, _UIter _Src)
Definition: xutility:456
_FwdIt _Remove_if_unchecked(_FwdIt _First, _FwdIt _Last, _Pr &_Pred)
Definition: algorithm:1473
_Iter _Unchecked(_Iter _Src)
Definition: xutility:426
_FwdIt _Last
Definition: algorithm:1936
template<class _Ty , class _Alloc , class _Uty >
void experimental::fundamentals_v2::erase ( forward_list< _Ty, _Alloc > &  _Cont,
const _Uty &  _Val 
)
inline
32  { // erase each element matching _Val
33  _Cont.remove_if([&](_Ty& _Elem)
34  { // return whether element matches _Val
35  return (_Elem == _Val);
36  });
37  }
_In_ int _Val
Definition: vcruntime_string.h:62
void remove_if(_Pr1 _Pred)
Definition: forward_list:1311
template<class _Ty , class _Alloc , class _Uty >
void experimental::fundamentals_v2::erase ( list< _Ty, _Alloc > &  _Cont,
const _Uty &  _Val 
)
inline
32  { // erase each element matching _Val
33  _Cont.remove_if([&](_Ty& _Elem)
34  { // return whether element matches _Val
35  return (_Elem == _Val);
36  });
37  }
void remove_if(_Pr1 _Pred)
Definition: list:1617
_In_ int _Val
Definition: vcruntime_string.h:62
template<class _Ty , class _Alloc , class _Uty >
void experimental::fundamentals_v2::erase ( deque< _Ty, _Alloc > &  _Cont,
const _Uty &  _Val 
)
inline
33  { // erase each element matching _Val
34  _Erase_remove(_Cont, _Val);
35  }
_In_ int _Val
Definition: vcruntime_string.h:62
void _Erase_remove(_Container &_Cont, const _Uty &_Val)
Definition: xutility:49
template<class _Ty , class _Alloc , class _Uty >
void experimental::fundamentals_v2::erase ( vector< _Ty, _Alloc > &  _Cont,
const _Uty &  _Val 
)
inline
33  { // erase each element matching _Val
34  _Erase_remove(_Cont, _Val);
35  }
_In_ int _Val
Definition: vcruntime_string.h:62
void _Erase_remove(_Container &_Cont, const _Uty &_Val)
Definition: xutility:49
template<class _Elem , class _Traits , class _Alloc , class _Uty >
void experimental::fundamentals_v2::erase ( basic_string< _Elem, _Traits, _Alloc > &  _Cont,
const _Uty &  _Val 
)
inline
35  { // erase each element matching _Val
36  _Erase_remove(_Cont, _Val);
37  }
_In_ int _Val
Definition: vcruntime_string.h:62
void _Erase_remove(_Container &_Cont, const _Uty &_Val)
Definition: xutility:49
template<class _Ty , class _Alloc , class _Pr >
void experimental::fundamentals_v2::erase_if ( list< _Ty, _Alloc > &  _Cont,
_Pr  _Pred 
)
inline
23  { // erase each element satisfying _Pred
24  _Cont._Remove_if(_Pred);
25  }
_FwdIt const _Ty _Pr _Pred
Definition: algorithm:1985
void _Remove_if(_Pr1 &_Pred)
Definition: list:1623
template<class _Ty , class _Alloc , class _Pr >
void experimental::fundamentals_v2::erase_if ( forward_list< _Ty, _Alloc > &  _Cont,
_Pr  _Pred 
)
inline
23  { // erase each element satisfying _Pred
24  _Cont._Remove_if(_Pred);
25  }
_FwdIt const _Ty _Pr _Pred
Definition: algorithm:1985
void _Remove_if(_Pr1 &_Pred)
Definition: forward_list:1317
template<class _Ty , class _Alloc , class _Pr >
void experimental::fundamentals_v2::erase_if ( vector< _Ty, _Alloc > &  _Cont,
_Pr  _Pred 
)
inline
24  { // erase each element satisfying _Pred
25  _Erase_remove_if(_Cont, _Pred);
26  }
_FwdIt const _Ty _Pr _Pred
Definition: algorithm:1985
void _Erase_remove_if(_Container &_Cont, _Pr &_Pred)
Definition: xutility:38
template<class _Ty , class _Alloc , class _Pr >
void experimental::fundamentals_v2::erase_if ( deque< _Ty, _Alloc > &  _Cont,
_Pr  _Pred 
)
inline
24  { // erase each element satisfying _Pred
25  _Erase_remove_if(_Cont, _Pred);
26  }
_FwdIt const _Ty _Pr _Pred
Definition: algorithm:1985
void _Erase_remove_if(_Container &_Cont, _Pr &_Pred)
Definition: xutility:38
template<class _Elem , class _Traits , class _Alloc , class _Pr >
void experimental::fundamentals_v2::erase_if ( basic_string< _Elem, _Traits, _Alloc > &  _Cont,
_Pr  _Pred 
)
inline
25  { // erase each element satisfying _Pred
26  _Erase_remove_if(_Cont, _Pred);
27  }
_FwdIt const _Ty _Pr _Pred
Definition: algorithm:1985
void _Erase_remove_if(_Container &_Cont, _Pr &_Pred)
Definition: xutility:38
template<class _Kty , class _Keylt , class _Alloc , class _Pr >
void experimental::fundamentals_v2::erase_if ( set< _Kty, _Keylt, _Alloc > &  _Cont,
_Pr  _Pred 
)
inline
25  { // erase each element satisfying _Pred
26  _Erase_nodes_if(_Cont, _Pred);
27  }
_FwdIt const _Ty _Pr _Pred
Definition: algorithm:1985
void _Erase_nodes_if(_Container &_Cont, _Pr &_Pred)
Definition: xutility:22
template<class _Kty , class _Hasher , class _Keyeq , class _Alloc , class _Pr >
void experimental::fundamentals_v2::erase_if ( unordered_set< _Kty, _Hasher, _Keyeq, _Alloc > &  _Cont,
_Pr  _Pred 
)
inline
27  { // erase each element satisfying _Pred
28  _Erase_nodes_if(_Cont, _Pred);
29  }
_FwdIt const _Ty _Pr _Pred
Definition: algorithm:1985
void _Erase_nodes_if(_Container &_Cont, _Pr &_Pred)
Definition: xutility:22
template<class _Kty , class _Ty , class _Keylt , class _Alloc , class _Pr >
void experimental::fundamentals_v2::erase_if ( map< _Kty, _Ty, _Keylt, _Alloc > &  _Cont,
_Pr  _Pred 
)
inline
26  { // erase each element satisfying _Pred
27  _Erase_nodes_if(_Cont, _Pred);
28  }
_FwdIt const _Ty _Pr _Pred
Definition: algorithm:1985
void _Erase_nodes_if(_Container &_Cont, _Pr &_Pred)
Definition: xutility:22
template<class _Kty , class _Ty , class _Hasher , class _Keyeq , class _Alloc , class _Pr >
void experimental::fundamentals_v2::erase_if ( unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc > &  _Cont,
_Pr  _Pred 
)
inline
28  { // erase each element satisfying _Pred
29  _Erase_nodes_if(_Cont, _Pred);
30  }
_FwdIt const _Ty _Pr _Pred
Definition: algorithm:1985
void _Erase_nodes_if(_Container &_Cont, _Pr &_Pred)
Definition: xutility:22
template<class _Kty , class _Keylt , class _Alloc , class _Pr >
void experimental::fundamentals_v2::erase_if ( multiset< _Kty, _Keylt, _Alloc > &  _Cont,
_Pr  _Pred 
)
inline
34  { // erase each element satisfying _Pred
35  _Erase_nodes_if(_Cont, _Pred);
36  }
_FwdIt const _Ty _Pr _Pred
Definition: algorithm:1985
void _Erase_nodes_if(_Container &_Cont, _Pr &_Pred)
Definition: xutility:22
template<class _Kty , class _Ty , class _Keylt , class _Alloc , class _Pr >
void experimental::fundamentals_v2::erase_if ( multimap< _Kty, _Ty, _Keylt, _Alloc > &  _Cont,
_Pr  _Pred 
)
inline
36  { // erase each element satisfying _Pred
37  _Erase_nodes_if(_Cont, _Pred);
38  }
_FwdIt const _Ty _Pr _Pred
Definition: algorithm:1985
void _Erase_nodes_if(_Container &_Cont, _Pr &_Pred)
Definition: xutility:22
template<class _Kty , class _Hasher , class _Keyeq , class _Alloc , class _Pr >
void experimental::fundamentals_v2::erase_if ( unordered_multiset< _Kty, _Hasher, _Keyeq, _Alloc > &  _Cont,
_Pr  _Pred 
)
inline
38  { // erase each element satisfying _Pred
39  _Erase_nodes_if(_Cont, _Pred);
40  }
_FwdIt const _Ty _Pr _Pred
Definition: algorithm:1985
void _Erase_nodes_if(_Container &_Cont, _Pr &_Pred)
Definition: xutility:22
template<class _Kty , class _Ty , class _Hasher , class _Keyeq , class _Alloc , class _Pr >
void experimental::fundamentals_v2::erase_if ( unordered_multimap< _Kty, _Ty, _Hasher, _Keyeq, _Alloc > &  _Cont,
_Pr  _Pred 
)
inline
40  { // erase each element satisfying _Pred
41  _Erase_nodes_if(_Cont, _Pred);
42  }
_FwdIt const _Ty _Pr _Pred
Definition: algorithm:1985
void _Erase_nodes_if(_Container &_Cont, _Pr &_Pred)
Definition: xutility:22