22 #ifndef HPL1_ALGORITHMS 23 #define HPL1_ALGORITHMS 25 #include "common/array.h" 29 template<
typename T,
typename V>
31 const auto oldSize = container.
size();
33 for (
auto i = oldSize; i < newSize; ++i)
37 template<
typename RandomIt,
typename Pred>
38 RandomIt removeIf(RandomIt begin, RandomIt end, Pred pred) {
39 for (
auto i = begin; i != end; ++i) {
48 #endif // HPL1_ALGORITHMS
size_type size() const
Definition: array.h:315
void resize(size_type newSize)
Definition: array.h:411
uint size_type
Definition: array.h:59
Definition: algorithms.h:27