PIVector doc, forEach refactory
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user