PIVector doc, forEach refactory
This commit is contained in:
@@ -275,17 +275,12 @@ public:
|
||||
mat.clear();
|
||||
}
|
||||
|
||||
const PIVector2D<T> & forEach(std::function<void(const T &)> f) const {
|
||||
void forEach(std::function<void(const T &)> f) const {
|
||||
mat.forEach(f);
|
||||
return *this;
|
||||
}
|
||||
PIVector2D<T> copyForEach(std::function<T(const T &)> f) const {
|
||||
PIVector2D<T> ret(*this);
|
||||
ret.mat = mat.copyForEach(f);
|
||||
return ret;
|
||||
}
|
||||
PIVector2D<T> & forEachInplace(std::function<T(const T &)> f) {
|
||||
mat.forEachInplace(f);
|
||||
|
||||
PIVector2D<T> & forEach(std::function<void(T &)> f) {
|
||||
mat.forEach(f);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user