code brush

This commit is contained in:
2021-07-16 15:26:52 +03:00
parent 686c970e84
commit de0e9f91ce

View File

@@ -236,8 +236,8 @@ public:
inline PIVector<T> & fill(std::function<T(size_t)> f) {
deleteT(piv_data, piv_size);
PIINTROSPECTION_CONTAINER_USED(T, piv_size)
for (size_t i = 0; i < piv_size; ++i)
elementNew(piv_data + i, f(i));
for (size_t i = 0; i < piv_size; ++i)
elementNew(piv_data + i, f(i));
return *this;
}
inline PIVector<T> & assign(const T & f = T()) {return fill(f);}
@@ -281,8 +281,8 @@ public:
size_t os = piv_size;
alloc(new_size);
PIINTROSPECTION_CONTAINER_USED(T, (new_size-os))
for (size_t i = os; i < new_size; ++i)
elementNew(piv_data + i, f(i));
for (size_t i = os; i < new_size; ++i)
elementNew(piv_data + i, f(i));
}
return *this;
}