Created
April 22, 2015 09:38
-
-
Save lethee/1e006da45da8931cc4e2 to your computer and use it in GitHub Desktop.
findMapValue
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
#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