25 #include "ocilibcpp/core.hpp" 37 ConcurrentList<T>::ConcurrentList() : _list()
43 ConcurrentList<T>::~ConcurrentList() noexcept
49 void ConcurrentList<T>::Add(T value)
52 _list.push_back(value);
57 void ConcurrentList<T>::Remove(T value)
65 void ConcurrentList<T>::Clear()
73 size_t ConcurrentList<T>::GetSize()
76 const size_t size = _list.size();
83 bool ConcurrentList<T>::Exists(
const T& value)
87 const bool res = std::find(_list.begin(), _list.end(), value) != _list.end();
96 bool ConcurrentList<T>::FindIf(P predicate, T& value)
102 typename std::list<T>::iterator it = std::find_if(_list.begin(), _list.end(), predicate);
104 if (it != _list.end())
117 void ConcurrentList<T>::ForEach(A action)
121 std::for_each(_list.begin(), _list.end(), action);