Hello,
this below doens't work but it gives the idea (hope) of my problem:
class Feature {
public:
bool isNotValid(int i) {
return this->_indexMissedMask[i];
}
void compute() {
vector<double>::iterator iter = remove_if(validValue.begin(),
validValue.end(), &Feature::isNotValid );
}
class Feature {
public:
bool isNotValid(int i) {
return this->_indexMissedMask[i];
}
void compute() {
vector<double>::iterator iter = remove_if(validValue.begin(),
validValue.end(), &Feature::isNotValid );
}
To copy to clipboard, switch view to plain text mode
_indexMissedMask is a vector of bool like this: false, false, true, false........
I have to remove from validValue all elements at the position with _indexMissedMask is "true".
Any hints, please?
Bookmarks