Go to the documentation of this file.
25 template<
typename T,
typename Allocator>
28 return std::count(vec.begin(), vec.end(), val);
31 template<
typename T,
typename Allocator,
typename UnaryPredicate>
37 template<
typename T,
typename Allocator>
43 template<
typename T,
typename Allocator>
49 template<
typename T,
typename Allocator>
52 pFlow::algorithms::STD::fillSequence<T, false>(vec.data()+start, end-start, startVal);
55 template<
typename T,
typename Allocator>
61 template<
typename T,
typename Allocator>
68 template<
typename T,
typename Allocator>
73 if ( vec[i] == val)
return static_cast<int64>(i);
auto count(const Vector< T, Allocator > &vec, const T &val)
void fill(Vector< T, Allocator > &vec, const T &val)
auto count_if(const Vector< T, Allocator > &vec, UnaryPredicate p)
int64 find(Vector< T, Allocator > &vec, const T &val)
auto count_if(const Vector< T, Allocator > &vec, UnaryPredicate p)
auto size() const
Size of the vector.
void fill_n(Vector< T, Allocator > &vec, size_t n, const T &val)
#define ForAll(i, container)
void fill(Vector< T, Allocator > &vec, const T &val)
auto count(const Vector< T, Allocator > &vec, const T &val)
void sort(Vector< T, Allocator > &vec)
void sort(Vector< T, Allocator > &vec)
void fillSequence(internalField< T, MemorySpace > &iField, const T &startVal)
void fill_n(Vector< T, Allocator > &vec, size_t n, const T &val)