Skip to content

Instantly share code, notes, and snippets.

@rwcarlsen
Created November 17, 2014 23:19
Show Gist options
  • Save rwcarlsen/4648e36afc642edbef7d to your computer and use it in GitHub Desktop.
Save rwcarlsen/4648e36afc642edbef7d to your computer and use it in GitHub Desktop.
int filtercol = ...;
int filterval = ...;
int operation = ...;
std::vector<int> pass;
for (int i = 0; i < qr.rows.size(); i++) {
int val = qr.GetVal<int>(filtercol, i);
switch (operation) {
case LT:
if (val < filterval) {
pass.push_back(i);
}
case GT:
...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment