Created
November 18, 2014 10:10
-
-
Save zhangyuchi/45267fa408b097ae9f9d to your computer and use it in GitHub Desktop.
c++14 lambda auto params
This file contains hidden or 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 derefLess = // C++14 comparison | |
[](const auto& p1, // function for | |
const auto& p2) // values pointed | |
{ return *p1 < *p2; }; // to by anything | |
// pointer-like |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment