PIVector doc, forEach refactory

This commit is contained in:
Andrey
2022-04-14 15:58:40 +03:00
parent 77e0423375
commit fa93c8a486
5 changed files with 150 additions and 109 deletions

View File

@@ -458,17 +458,11 @@ public:
PIVector<Type> toVector() const {return c;}
const _CVector & forEach(std::function<void(const Type &)> f) const {
void forEach(std::function<void(const Type &)> f) const {
c.forEach(f);
return *this;
}
_CVector copyForEach(std::function<Type(const Type &)> f) const {
_CVector ret;
ret.c = c.copyForEach(f);
return ret;
}
_CVector & forEachInplace(std::function<Type(const Type &)> f) {
c.forEachInplace(f);
_CVector & forEach(std::function<void(Type &)> f) {
c.forEach(f);
return *this;
}