-
-
Save owensd/1b16e3c12b07cd4c993cb9da06a507a3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
auto nameit = req.parameters.find("name"); | |
if (nameit == req.parameters.end()) { | |
// parameter not found | |
} | |
else { | |
// yay, get the name out! | |
auto name = nameit->first; | |
} | |
if (req.parameters.count("name") == 1) { | |
// there is an item here | |
} | |
else { | |
// there is not | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment