Skip to content

Instantly share code, notes, and snippets.

@lethee
Created April 22, 2015 09:38
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 lethee/1e006da45da8931cc4e2 to your computer and use it in GitHub Desktop.
Save lethee/1e006da45da8931cc4e2 to your computer and use it in GitHub Desktop.
findMapValue
#define _findMapValue(container, key) (container.end() != find_if(container.begin(), container.end(), [](decltype(container)::value_type it) { return it.first == key; }))
// c++11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment