Created
February 18, 2017 22:19
-
-
Save joboccara/f0685f417bcbe0671c9c1bcd93eca7f6 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
std::vector<CashFlow> flows = ... | |
auto it = std::find_if(flows.begin(), flows.end(), isPositive); | |
std::cout << "Made " it->getValue() << "$, at last!\n"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment