Skip to content

Instantly share code, notes, and snippets.

@foobit
Created May 21, 2014 03:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save foobit/88e909a782c40ffc7723 to your computer and use it in GitHub Desktop.
Save foobit/88e909a782c40ffc7723 to your computer and use it in GitHub Desktop.
C++11 fancy iteration
bool isNumeric(const std::string& input)
{
return std::all_of(input.begin(), input.end(), ::isdigit);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment