Skip to content

Instantly share code, notes, and snippets.

@owensd

owensd/stdmap.cpp Secret

Last active Apr 21, 2017
Embed
What would you like to do?
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