Skip to content

Instantly share code, notes, and snippets.

@trikitrok
Created March 2, 2014 11:18
Show Gist options
  • Save trikitrok/883ee7a91934c6d5d402 to your computer and use it in GitHub Desktop.
Save trikitrok/883ee7a91934c6d5d402 to your computer and use it in GitHub Desktop.
std::vector<std::string> NumbersExtractor::filterOutNotNumericTokens(const std::vector<std::string> & tokens) const {
std::vector<std::string> numericTokens;
std::copy_if(tokens.begin(), tokens.end(),
std::back_inserter(numericTokens),
StringUtils::isAnInteger);
return numericTokens;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment